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

vue3 ts-loader use decorators will error #1724

Closed
haishengXie0712 opened this issue Sep 11, 2020 · 3 comments
Closed

vue3 ts-loader use decorators will error #1724

haishengXie0712 opened this issue Sep 11, 2020 · 3 comments

Comments

@haishengXie0712
Copy link

Version

16.0.0-beta.5

Reproduction link

https://github.com/haishengXie0712/test

Steps to reproduce

npm i && npm run dev

What is expected?

decorators it work

What is actually happening?

This experimental syntax requires enabling one of the following parser plugin(s): 'decorators-legacy, decorators' (4:0)


My loader version you are beta.7, but can not select.so i select bats.5.

@MKGaru
Copy link

MKGaru commented Sep 11, 2020

compile error since 16.0.0-beta.6~ 🤕

fb09c8b#diff-f41e9d04a45c83f3b6f6e630f10117feR134

@haoqunjiang
Copy link
Member

Should be fixed in upstream: vuejs/core#2088

Temporary workaround: set the babelParserPlugins option, like here: https://github.com/vuejs/vue-cli/pull/5868/files#diff-6ec9cc910e3a24f805cd6d69c2b5c0c9R138

@haishengXie0712
Copy link
Author

@MKGaru @sodatea
That's it. Thank you for your answers!

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

3 participants