Module build failed (from ./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js):
[HBuilder] 17:17:31.695 Error: Unbalanced delimiter found in string
[HBuilder] 17:17:31.699 at Function.XRegExp.matchRecursive (D:\编程软件\HBuilderX\plugins\uniapp-cli\node_modules\xregexp\lib\addons\matchrecursive.js:186:23)
[HBuilder] 17:17:31.700 at matchReplacePass (D:\编程软件\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\webpack-preprocess-loader\preprocess\lib\preprocess.js:303:27)
[HBuilder] 17:17:31.705 at replaceRecursive (D:\编程软件\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\webpack-preprocess-loader\preprocess\lib\preprocess.js:333:10)
[HBuilder] 17:17:31.706 at preprocessor (D:\编程软件\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\webpack-preprocess-loader\preprocess\lib\preprocess.js:168:10)
[HBuilder] 17:17:31.711 at Object.preprocess (D:\编程软件\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\webpack-preprocess-loader\preprocess\lib\preprocess.js:93:10)
[HBuilder] 17:17:31.711 at Object.<anonymous> (D:\编程软件\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-mp-loader\lib\script-new.js:42:26)
[HBuilder] 17:17:31.716 at Object.<anonymous> (D:\编程软件\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-mp-loader\lib\script.js:22:36)
[HBuilder] 17:17:31.717 ERROR Build failed with errors.
[HBuilder] 17:17:31.722 项目 'front-end-code1' 发布微信小程序失败.
解决方案:应该是你的ifdef 和 endif不匹配。你自己看看你的代码,是不是有的地方只有一个endif或者只有ifdef,或者说写错了,检查下。我的就是少了endif.
希望我的解决方案能帮到你
|