-
Notifications
You must be signed in to change notification settings - Fork 46
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
build failed on vite typescript #2895
Comments
Same here width shadcn-vue component and vue 3.5.13 and vite 6.0.2... Too sad... |
Could either of you please provide a sample repo to reproduce the issue? |
I encountered the exact same issue on an empty SvelteKit proyect: npx sv create
PS: package.json "tailwindcss": "^3.4.9", |
The same here with Vite 6.0.9, React 18.3.1 and TypeScript 5.6.2 |
The issue should be resolved in v1.30.1. |
Describe the bug
preview js fail on opening with the following errors:
Build failed with 3 errors: (define name):1:0: ERROR: Expected identifier but found "import" (define name):1:0: ERROR: Expected identifier but found "import" (define name):1:0: ERROR: Expected identifier but found "import" at failureErrorWithLog (/.vscode/extensions/zenclabs.previewjs-1.30.0/dist/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1476:15) at //.vscode/extensions/zenclabs.previewjs-1.30.0/dist/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:945:25 at runOnEndCallbacks (//.vscode/extensions/zenclabs.previewjs-1.30.0/dist/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1316:45) at buildResponseToResult (//.vscode/extensions/zenclabs.previewjs-1.30.0/dist/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:943:7) at //.vscode/extensions/zenclabs.previewjs-1.30.0/dist/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:970:16 at responseCallbacks.<computed> (//.vscode/extensions/zenclabs.previewjs-1.30.0/dist/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:622:9) at handleIncomingPacket (//.vscode/extensions/zenclabs.previewjs-1.30.0/dist/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:677:12) at Socket.readFromStdout (//.vscode/extensions/zenclabs.previewjs-1.30.0/dist/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:600:7) at Socket.emit (node:events:520:28) at addChunk (node:internal/streams/readable:559:12)
Reproduction
open preview js on any component on in browser
Preview.js version
1.30.0
Framework
React 18.2.0
System Info
Used Package Manager
pnpm
Extension logs (useful for crashes)
No response
Preview logs (useful for rendering errors)
Repo link (if available)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: