把项目从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 应用已启动...
5***@qq.com
- 发布:2019-10-20 22:00
- 更新:2021-11-04 11:28
- 阅读:18244
模块编译错误.Module build failed (from ./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js)
分类:HBuilderX
8***@qq.com
ifdef 和 endif不匹配。你自己看看你的代码,是不是有的地方只有一个endif或者只有ifdef
2019-11-19 09:54
5***@qq.com (作者)
回复 8***@qq.com:谢谢
2020-07-22 15:01
嘻打
回复 8***@qq.com: 不错
2020-07-23 10:52