We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
9:45:05 AM [vite] Internal server error: unknown: Support for the experimental syntax 'decorators-legacy' isn't currently enabled (6:3): 4 | 5 | class Model { > 6 | @IsPositive({ message: '必须为正整数' }) | ^ 7 | @IsInt({ message: '必须为整数 ' }) 8 | count: number = 0 9 | } Plugin: vue-jsx File: /Users/jianhuaren/vite-antd/src/app.tsx 4 | 5 | class Model { 6 | @IsPositive({ message: '必须为正整数' }) | ^ 7 | @IsInt({ message: '必须为整数 ' }) 8 | count: number = 0 at Object._raise (/Users/jianhuaren/vite-antd/node_modules/@babel/parser/lib/index.js:810:17) at Object.raiseWithData (/Users/jianhuaren/vite-antd/node_modules/@babel/parser/lib/index.js:803:17) at Object.expectOnePlugin (/Users/jianhuaren/vite-antd/node_modules/@babel/parser/lib/index.js:9995:18)
The text was updated successfully, but these errors were encountered:
meet the same question, is there any solution?
Sorry, something went wrong.
这说的不就是没开启legacy选项吗?给@babel/plugin-proposal-decorators插件传legacy为true的选项就可以了,比如vueJsx({ babelPlugins: [['@babel/plugin-proposal-decorators', { legacy: true }]] })
这说的不就是没开启legacy选项吗?给@babel/plugin-proposal-decorators插件传legacy为true的选项就可以了,比如vueJsx({ babelPlugins: [['@babel/plugin-proposal-decorators', { legacy: true }]] })
我滴个龟龟 原来是这样写的啊
Works, well done
No branches or pull requests
🧐 Problem Description
💻 Sample code
🚑 Other information
The text was updated successfully, but these errors were encountered: