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

fix: compilation missing plugin "decorators-legacy" #138

Merged
merged 1 commit into from Nov 1, 2022
Merged

fix: compilation missing plugin "decorators-legacy" #138

merged 1 commit into from Nov 1, 2022

Conversation

Tsuk1ko
Copy link
Contributor

@Tsuk1ko Tsuk1ko commented Nov 1, 2022

项目中使用了装饰器,发现会报错

[vite:dts] This experimental syntax requires enabling one of the following parser plugin(s): "decorators", "decorators-legacy".

对比 @vue/compiler-sfc 和上面处理 script setup 的部分发现是漏了 decorators-legacy,补上后解决问题

@qmhc qmhc merged commit 717af2f into qmhc:main Nov 1, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants