使用装饰器@报错,已经运行了eject,安装依赖安装课程步骤来的
安装了两个依赖包,也设置了.babelrc,使用@时,运行报错Support for the experimental syntax 'decorators-legacy' isn't currently enabled,找了百度的解决方法,添加
"plugins": [ [ "@babel/plugin-proposal-decorators", { "legacy": true } ] ],
不可解决。。请问怎么回事啊??
安装了两个依赖包,也设置了.babelrc,使用@时,运行报错Support for the experimental syntax 'decorators-legacy' isn't currently enabled,找了百度的解决方法,添加
"plugins": [ [ "@babel/plugin-proposal-decorators", { "legacy": true } ] ],
不可解决。。请问怎么回事啊??
2019-09-21
举报