腾越
腾越
  • 发布:2020-05-29 18:48
  • 更新:2021-11-26 18:48
  • 阅读:1763

uni-app项目编译报错Module build failed (from ..../webpack-uni-app-loader/view/script.js

分类:uni-app

项目 'applet' 编译成功。
18:44:34.002 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/script.js):
18:44:34.003 Error: 组件 payment 引用错误,仅支持 import 方式引入组件
18:44:34.012 at names.forEach (D:\napp\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-mp-loader\lib\babel\util.js:37:13)
18:44:34.036 at Array.forEach (<anonymous>)
18:44:34.042 at parseComponents (D:\napp\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-mp-loader\lib\babel\util.js:31:9)
18:44:34.047 at handleComponentsObjectExpression (D:\napp\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-mp-loader\lib\babel\scoped-component-traverse.js:40:22)
18:44:34.048 at handleObjectExpression (D:\napp\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-mp-loader\lib\babel\scoped-component-traverse.js:33:5)
18:44:34.053 at ExportDefaultDeclaration (D:\napp\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-mp-loader\lib\babel\scoped-component-traverse.js:83:9)
18:44:34.058 at NodePath._call (D:\napp\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:55:20)
18:44:34.064 at NodePath.call (D:\napp\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:42:17)
18:44:34.071 at NodePath.visit (D:\napp\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:90:31)
18:44:34.072 at TraversalContext.visitQueue (D:\napp\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:112:16)
18:44:34.077 at TraversalContext.visitMultiple (D:\napp\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:79:17)
18:44:34.082 at TraversalContext.visit (D:\napp\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:138:19)
18:44:34.086 at Function.traverse.node (D:\napp\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\index.js:84:17)
18:44:34.091 at NodePath.visit (D:\napp\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:97:18)
18:44:34.092 at TraversalContext.visitQueue (D:\napp\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:112:16)
18:44:34.096 at TraversalContext.visitSingle (D:\napp\HBuilderX\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:84:19)
18:44:34.097 ERROR Build failed with errors.

2020-05-29 18:48 负责人:无 分享
已邀请:
baiyun_rain

baiyun_rain - 多敲代码

解决了嘛?怎么解决的?

开心_哈哈

开心_哈哈

解决了嘛?怎么解决的?

j***@126.com

j***@126.com

求大哥解决方法

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