Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vite构建报错 #497

Closed
7 of 9 tasks
Tyreo opened this issue Dec 25, 2024 · 1 comment
Closed
7 of 9 tasks

vite构建报错 #497

Tyreo opened this issue Dec 25, 2024 · 1 comment

Comments

@Tyreo
Copy link

Tyreo commented Dec 25, 2024

Related plugins

Describe the bug

vite 打包data:image/jpeg;base64,${await getImgUrlForSearch()}会报错,而改成这种写法不会报错'data:image/jpeg;base64,' + (await getImgUrlForSearch())。
报错内容为Error: unknown file: unknown Expression of type "TemplateLiteral"
[vite:legacy-post-process] unknown file: unknown Expression of type "TemplateLiteral"

Reproduction

Steps to reproduce

No response

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
    Memory: 13.78 GB / 31.80 GB
  Binaries:
    Node: 18.19.1 - D:\node\node.EXE
    npm: 10.2.4 - D:\node\npm.CMD
  Browsers:
    Edge: Chromium (128.0.2739.67)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    @vitejs/plugin-legacy: 4.1.1 => 4.1.1
    @vitejs/plugin-vue: 4.0.0 => 4.0.0
    vite: 4.1.1 => 4.1.1

Used Package Manager

npm

Logs

No response

Validations

Copy link

Hello @Tyreo. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction will be closed if they have no activity within 3 days.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 29, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jan 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants