51580915@qq.com
51580915@qq.com
  • 发布:2019-10-20 22:00
  • 更新:3 天前
  • 阅读:214

模块编译错误.Module build failed (from ./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js)

分类:HBuilderX

把项目从windows迁移到苹果就出现这样的问题了,有没有大神帮我看看
21:46:48.496 项目 'uniapp' 编译成功.
21:46:48.510 Module build failed (from ./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js):
21:46:48.511 Error: Unbalanced delimiter found in string
21:46:48.582 at Function.XRegExp.matchRecursive (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/xregexp/lib/addons/matchrecursive.js:186:23)
21:46:48.598 at matchReplacePass (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/preprocess/lib/preprocess.js:303:27)
21:46:48.599 at replaceRecursive (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/preprocess/lib/preprocess.js:333:10)
21:46:48.615 at preprocessor (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/preprocess/lib/preprocess.js:168:10)
21:46:48.630 at Object.preprocess (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/preprocess/lib/preprocess.js:93:10)
21:46:48.646 at Object.module.exports (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script-new.js:34:26)
21:46:48.665 at Object.module.exports (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js:20:38)
21:46:48.801 ERROR Build failed with errors.
21:46:49.002 正在建立手机连接...
21:46:49.430 正在同步手机端程序文件...
21:46:50.911 同步手机端程序文件完成
21:46:51.039 正在启动HBuilder调试基座...
21:46:52.318 应用已启动...

2019-10-20 22:00 分享
已邀请:
lcuiandlc

lcuiandlc - asdf

有没有解决呢? 我也遇到了。

要回复问题请先登录注册