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

tsx parse error when use latest vite & plugin #10702

Closed
7 tasks done
coader opened this issue Oct 29, 2022 · 1 comment · Fixed by #10714
Closed
7 tasks done

tsx parse error when use latest vite & plugin #10702

coader opened this issue Oct 29, 2022 · 1 comment · Fixed by #10714

Comments

@coader
Copy link

coader commented Oct 29, 2022

Describe the bug

tsx parse error when build with latest vite & plugin

Reproduction

none

Steps to reproduce

after upgraded to latest vite & plugin version:
@vitejs/plugin-vue": "^3.2.0",
"@vitejs/plugin-vue-jsx": "^2.1.0",
"vite": "^3.2.1",

all tsx file build with type declaration throw error:
[vite:build-import-analysis] Parse error @:36:91
file :....vue?vue&type=script&setup=true&lang.tsx:43:3
...

error during build:
Error: Parse error @:36:91
at parse$b (.../node_modules/.pnpm/[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-d29b4e33.js:33839:355)
at Object.transform (.../node_modules/.pnpm/[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-d29b4e33.js:43263:27)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

it's strange that it's ok when running with dev mode,

after I turn back to
"@vitejs/plugin-vue": "3.1.2",
"@vitejs/plugin-vue-jsx": "2.0.1",
"vite": "3.1.8",

everything is ok.

System Info

@vitejs/plugin-vue": "^3.2.0",
"@vitejs/plugin-vue-jsx": "^2.1.0",
"vite": "^3.2.1",

Used Package Manager

pnpm

Logs

No response

Validations

@github-actions
Copy link

Hello @coader. 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 locked and limited conversation to collaborators Nov 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants