以何为家
以何为家
  • 发布:2021-11-03 18:08
  • 更新:2021-11-04 11:32
  • 阅读:1545

编译老报错,@dcloudio\vue-cli-plugin-uni\packages\webpack-preprocess-loader

分类:uni-app

编译一直报错,如何解决呢??求助

 Module build failed (from ./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js):  
18:00:56.880 SyntaxError: Unexpected identifier  
18:00:56.884     at new Function (<anonymous>)  
18:00:56.885     at getTestTemplate (F:\HbuilderX\HBuilderX.3.2.9.20210927.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\webpack-preprocess-loader\preprocess\lib\preprocess.js:375:10)  
18:00:56.889     at testPasses (F:\HbuilderX\HBuilderX.3.2.9.20210927.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\webpack-preprocess-loader\preprocess\lib\preprocess.js:379:16)  
18:00:56.890     at F:\HbuilderX\HBuilderX.3.2.9.20210927.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\webpack-preprocess-loader\preprocess\lib\preprocess.js:174:18  
18:00:56.896     at F:\HbuilderX\HBuilderX.3.2.9.20210927.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\webpack-preprocess-loader\preprocess\lib\preprocess.js:326:22  
18:00:56.896     at Array.reduce (<anonymous>)  
18:00:56.902     at matchReplacePass (F:\HbuilderX\HBuilderX.3.2.9.20210927.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\webpack-preprocess-loader\preprocess\lib\preprocess.js:313:20)  
18:00:56.903     at replaceRecursive (F:\HbuilderX\HBuilderX.3.2.9.20210927.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\webpack-preprocess-loader\preprocess\lib\preprocess.js:333:10)  
18:00:56.909     at preprocessor (F:\HbuilderX\HBuilderX.3.2.9.20210927.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\webpack-preprocess-loader\preprocess\lib\preprocess.js:168:10)  
18:00:56.916     at Object.preprocess (F:\HbuilderX\HBuilderX.3.2.9.20210927.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\webpack-preprocess-loader\preprocess\lib\preprocess.js:93:10)
2021-11-03 18:08 负责人:无 分享
已邀请:
以何为家

以何为家 (作者) - 这个人很烂,暂无介绍

已解决 https://www.jianshu.com/p/7955350dad21

该问题目前已经被锁定, 无法添加新回复