NervJS / taro-ui-sample

基于 Taro 的多端 UI 库示范用例
69 stars 43 forks source link

H5编译报错 #10

Open pandapandaQ opened 5 years ago

pandapandaQ commented 5 years ago

直接下载仓库代码 输入 tnpm install 输入 npm run dev:h5 报错: Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.

怀疑是是@babel/core 7.0与transform-decorators-legacy插件冲突?

ghost commented 4 years ago

由于babel 版本问题导致,将taro-ui 库中的package.json 中babel 和webpack 拷贝到你的工程package.json中既可以解决问题