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

vue2.7.16中setup jsx语法中vModel无法绑定ref #25

Open
mark980828 opened this issue Mar 17, 2024 · 0 comments
Open

vue2.7.16中setup jsx语法中vModel无法绑定ref #25

mark980828 opened this issue Mar 17, 2024 · 0 comments

Comments

@mark980828
Copy link

mark980828 commented Mar 17, 2024

example: https://stackblitz.com/edit/vitejs-vite-dnqewx?file=src%2FApp.vue

vue2.7.16中setup jsx语法中vModel无法绑定ref

error log:
[vite] Internal server error: unknown file: Property left of AssignmentExpression expected node to be of a type ["LVal","OptionalMemberExpression"] but instead got "CallExpression"
Plugin: vite:vue2-jsx
File: /home/projects/vitejs-vite-dnqewx/src/App.vue?vue&type=script&setup=true&lang.jsx
at Object.validate (file:///home/projects/vitejs-vite-dnqewx/node_modules/@babel/types/lib/definitions/utils.js:105:11)
at validateField (file:///home/projects/vitejs-vite-dnqewx/node_modules/@babel/types/lib/validators/validate.js:21:9)
at validate (file:///home/projects/vitejs-vite-dnqewx/node_modules/@babel/types/lib/validators/validate.js:15:3)
at validateNode (file:///home/projects/vitejs-vite-dnqewx/node_modules/@babel/types/lib/builders/validateNode.js:12:27)
at Object.assignmentExpression (file:///home/projects/vitejs-vite-dnqewx/node_modules/@babel/types/lib/builders/generated/index.js:269:36)
at genAssignmentCode (file:///home/projects/vitejs-vite-dnqewx/node_modules/@vue/babel-sugar-v-model/dist/plugin.js:1:2618)
at genDefaultModel (file:///home/projects/vitejs-vite-dnqewx/node_modules/@vue/babel-sugar-v-model/dist/plugin.js:1:8616)
at transformModel (file:///home/projects/vitejs-vite-dnqewx/node_modules/@vue/babel-sugar-v-model/dist/plugin.js:1:1626)
at JSXAttribute (file:///home/projects/vitejs-vite-dnqewx/node_modules/@vue/babel-sugar-v-model/dist/plugin.js:1:376)
at NodePath._call (file:///home/projects/vitejs-vite-dnqewx/node_modules/@babel/traverse/lib/path/context.js:46:20)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant