NidhoggDLender
NidhoggDLender
  • 发布:2020-05-14 18:42
  • 更新:2020-05-14 19:08
  • 阅读:1017

小程序运行失败 H5可以

分类:HBuilderX

报错内容如下,已安装最新HbuildX了

TypeError: Property value expected type of string but got null  
18:37:15.404     at Object.validate (E:\HBuilderXnew\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\types\lib\definitions\utils.js:160:13)  
18:37:15.410     at validateField (E:\HBuilderXnew\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\types\lib\validators\validate.js:24:9)  
18:37:15.427     at validate (E:\HBuilderXnew\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\types\lib\validators\validate.js:17:3)  
18:37:15.434     at builder (E:\HBuilderXnew\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\types\lib\builders\builder.js:38:27)  
18:37:15.442     at Object.StringLiteral (E:\HBuilderXnew\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\types\lib\builders\generated\index.js:349:31)  
18:37:15.450     at parseEventByCallExpression (E:\HBuilderXnew\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:175:30)  
18:37:15.459     at exprStatements.forEach.exprStatement (E:\HBuilderXnew\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:282:15)  
18:37:15.470     at Array.forEach (<anonymous>)  
18:37:15.470     at valuePath.forEach.funcPath (E:\HBuilderXnew\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:281:28)  
18:37:15.484     at Array.forEach (<anonymous>)  
18:37:15.484     at parseEvent (E:\HBuilderXnew\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:235:15)  
18:37:15.503     at _processEvent (E:\HBuilderXnew\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:368:9)  
18:37:15.504     at processEvent (E:\HBuilderXnew\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:427:5)  
18:37:15.514     at processes.forEach.process (E:\HBuilderXnew\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:34:5)  
18:37:15.526     at Array.forEach (<anonymous>)  
18:37:15.537     at traverseData (E:\HBuilderXnew\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:33:13)  
18:37:24.185 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
18:37:24.185 Error: Compile failed at pages/activity/activity.vue  
18:37:24.199     at compile (E:\HBuilderXnew\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\index.js:137:13)  
18:37:24.200     at actuallyCompile (E:\HBuilderXnew\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:70:96)  
18:37:24.219     at compileTemplate (E:\HBuilderXnew\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:31:16)  
18:37:24.220     at Object.module.exports (E:\HBuilderXnew\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-loader\lib\loaders\templateLoader.js:46:20)  
18:37:24.251  ERROR  Build failed with errors.  
2020-05-14 18:42 负责人:无 分享
已邀请:
NidhoggDLender

NidhoggDLender (作者) - I am Joking

节流哪里我是这样写的报的错 @click="throttle(setSms, 1500)()"

小程序端应该是不能写()()这种格式的app居然可以

问题已解决了,也给大伙提个醒吧

NidhoggDLender

NidhoggDLender (作者) - I am Joking

很急,急着下班呢,前几天没这情况啊

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