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

写@mixin 不知道为啥会报错 #104

Open
dadazhouRenee opened this issue Aug 23, 2019 · 3 comments
Open

写@mixin 不知道为啥会报错 #104

dadazhouRenee opened this issue Aug 23, 2019 · 3 comments

Comments

@dadazhouRenee
Copy link

会报‘Support for the experimental syntax 'decorators-legacy' isn't currently enabled’ 这个错;
但是我引了 import mixin, { padStr } from '@/utils/mixin';

我刚开始学 对着这个项目敲来着 不是很懂 是不是我什么没装呀

@bailicangdu
Copy link
Owner

需要安装修饰器的babel插件

@dadazhouRenee
Copy link
Author

请问 是babel-plugin-transform-decorators-legacy这个吗 我装了还是报错来着

@dadazhouRenee
Copy link
Author

好像因为版本的原因 我装了 @babel/plugin-proposal-decorators 这个然后再配置一下就可以了 谢谢啦!

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

2 participants