y***@sina.com
y***@sina.com
  • 发布:2019-09-18 14:24
  • 更新:2019-11-21 13:47
  • 阅读:1115

项目自定义基座报错,测试了几个版本都不行,没有看到明确的错误原因

分类:HBuilderX

[HBuilder] 14:06:05.420 项目 'police-h5' 开始编译...
[HBuilder] 14:06:14.041 编译器版本:2.2.7,当前项目编译模式:自定义组件模式。编译模式差异见:https://ask.dcloud.net.cn/article/35843
[HBuilder] 14:07:18.458 DONE Build complete.
[HBuilder] 14:07:18.466 项目 'police-h5' 编译成功.
[HBuilder] 14:07:18.467 Module build failed (from ./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js):
[HBuilder] 14:07:18.478 TypeError: Cannot read property 'buildError' of undefined
[HBuilder] 14:07:18.479 at Scope.checkBlockScopedCollisions (G:\Work\developer\html\tool\HBuilderX1\plugins\uniapp-cli\node_modules\@babel\traverse\lib\scope\index.js:347:22)
[HBuilder] 14:07:18.491 at Scope.registerBinding (G:\Work\developer\html\tool\HBuilderX1\plugins\uniapp-cli\node_modules\@babel\traverse\lib\scope\index.js:504:16)
[HBuilder] 14:07:18.492 at Scope.registerDeclaration (G:\Work\developer\html\tool\HBuilderX1\plugins\uniapp-cli\node_modules\@babel\traverse\lib\scope\index.js:444:14)
[HBuilder] 14:07:18.499 at Object.BlockScoped (G:\Work\developer\html\tool\HBuilderX1\plugins\uniapp-cli\node_modules\@babel\traverse\lib\scope\index.js:189:28)
[HBuilder] 14:07:18.500 at Object.newFn (G:\Work\developer\html\tool\HBuilderX1\plugins\uniapp-cli\node_modules\@babel\traverse\lib\visitors.js:230:17)
[HBuilder] 14:07:18.506 at NodePath._call (G:\Work\developer\html\tool\HBuilderX1\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:53:20)
[HBuilder] 14:07:18.507 at NodePath.call (G:\Work\developer\html\tool\HBuilderX1\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:36:14)
[HBuilder] 14:07:18.515 at NodePath.visit (G:\Work\developer\html\tool\HBuilderX1\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:88:12)
[HBuilder] 14:07:18.520 at TraversalContext.visitQueue (G:\Work\developer\html\tool\HBuilderX1\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:118:16)
[HBuilder] 14:07:18.528 at TraversalContext.visitMultiple (G:\Work\developer\html\tool\HBuilderX1\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:85:17)
[HBuilder] 14:07:18.530 at TraversalContext.visit (G:\Work\developer\html\tool\HBuilderX1\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:144:19)
[HBuilder] 14:07:18.537 at Function.traverse.node (G:\Work\developer\html\tool\HBuilderX1\plugins\uniapp-cli\node_modules\@babel\traverse\lib\index.js:94:17)
[HBuilder] 14:07:18.538 at NodePath.visit (G:\Work\developer\html\tool\HBuilderX1\plugins\uniapp-cli\node_modules\@babel\traverse\lib\path\context.js:95:18)
[HBuilder] 14:07:18.543 at TraversalContext.visitQueue (G:\Work\developer\html\tool\HBuilderX1\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:118:16)
[HBuilder] 14:07:18.548 at TraversalContext.visitSingle (G:\Work\developer\html\tool\HBuilderX1\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:90:19)
[HBuilder] 14:07:18.554 at TraversalContext.visit (G:\Work\developer\html\tool\HBuilderX1\plugins\uniapp-cli\node_modules\@babel\traverse\lib\context.js:146:19)
[HBuilder] 14:07:18.554 ERROR Build failed with errors.

2019-09-18 14:24 负责人:无 分享
已邀请:
5***@qq.com

5***@qq.com

你好,这个问题最后怎么解决的?

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