Nekomata
Nekomata
  • 发布:2020-12-23 15:01
  • 更新:2022-01-13 14:21
  • 阅读:914

运行微信小程序报错 h5和安卓没问题

分类:HBuilderX

14:52:51.695 TypeError: Property value expected type of string but got null
14:52:51.695 at Object.validate (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\definitions\utils.js:160:13)
14:52:51.699 at validateField (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\validators\validate.js:24:9)
14:52:51.700 at validate (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\validators\validate.js:17:3)
14:52:51.705 at builder (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\builders\builder.js:38:27)
14:52:51.705 at Object.StringLiteral (D:\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\builders\generated\index.js:350:31)
14:52:51.710 at parseEventByCallExpression (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:177:30)
14:52:51.710 at exprStatements.forEach.exprStatement (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:302:15)
14:52:51.714 at Array.forEach (<anonymous>)
14:52:51.715 at valuePath.forEach.funcPath (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:301:28)
14:52:51.720 at Array.forEach (<anonymous>)
14:52:51.720 at parseEvent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:242:15)
14:52:51.724 at _processEvent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:416:9)
14:52:51.730 at processEvent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:477:5)
14:52:51.731 at processes.forEach.process (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:34:5)
14:52:51.737 at Array.forEach (<anonymous>)
14:52:51.737 at traverseData (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:33:13)

2020-12-23 15:01 负责人:无 分享
已邀请:
[已删除]

[已删除]

往下看报错日志,应该有页面路径,把页面中属性值为es6语法的代码改成调用方法或es5代码试试。

1***@163.com

1***@163.com

解决了吗现在

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