-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
"npm run build" ends in error "[vite:esbuild] Transform failed - ERROR: Expected ">" but found "setup" #1844
Comments
I don't know if this is helpful but I think this issue is more related to the interaction between vite, esbuild or one of the plugins used to transform the vue code. However I hope this helps to point in the right direction. |
And I forgot to mention that I have no error when starting dev server or doing export to pdf. Only build operation is failing. |
Possibly vitejs/vite-plugin-vue#431. There is a workaround in dcloudio/uni-preset-vue#102 (comment). What's the |
I have 5.1.2 and ends in error.
Tried mentioned version ~5.0.4, which resulted again in error:
I tested it also on another computer, where i have windows and it works with plugin-vue 5.1.2. In fact I compared output of "npm ls -a" and i got all packages on same versions on both computers. Yet on one it works and on second still no. To be sure i copied entire project with all installed node modules from working computer to my not working, run build and again got error. So exactly same code works on work computer with Win 10 22H2 and not works on my home computer with Win 11. And because this looks like some error connected to vite/esbuild feel free to close this issue as this is probably unsolvable by slidev. |
Describe the bug
"npm run build" ends in error "[vite:esbuild] Transform failed with 1 error - ERROR: Expected ">" but found "setup"" with just initialized slidev project. Its probably same error as previously encountered in #1808.
Minimal reproduction
Steps to reproduce the behavior:
Environment
+-- @slidev/cli@0.49.29
+-- @slidev/theme-default@0.25.0
+-- @slidev/theme-seriph@0.25.0
`-- vue@3.4.38
Maybe its platform (Windows) related, I tested your "sandbox" environment and know that there build is fine. I'm familiar to Node and react, but not to vue / vite / esbuild, not sure where to look more specifically for error/help with this issue.
The text was updated successfully, but these errors were encountered: