You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
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.
Related plugins
plugin-vue
plugin-vue-jsx
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
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: