Problem Description: the unapp compilation applet reports an error, but there is no problem on the H5 and app side
15:57:47.609 TypeError: Property value expected type of string but got null 15:57:47.609 at Object.validate (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\definitions\utils.js:160:13) 15:57:47.615 at validateField (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\validators\validate.js:24:9) 15:57:47.621 at validate (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\validators\validate.js:17:3) 15:57:47.621 at builder (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\builders\builder.js:38:27) 15:57:47.629 at Object.StringLiteral (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@babel\types\lib\builders\generated\index.js:350:31) 15:57:47.629 at parseEventByCallExpression (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:177:30) 15:57:47.642 at D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:318:15 15:57:47.643 at Array.forEach (<anonymous>) 15:57:47.651 at D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:317:28 15:57:47.651 at Array.forEach (<anonymous>) 15:57:47.662 at parseEvent (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:258:15) 15:57:47.662 at _processEvent (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:436:9) 15:57:47.670 at processEvent (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:497:5) 15:57:47.671 at D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:34:5 15:57:47.678 at Array.forEach (<anonymous>) 15:57:47.686 at traverseData (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:33:13) 15:57:48.873 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
The reason is that I used uview’s anti shake in the code and passed the parameters
<view @tap="$u.throttle
(goGoodsDetai(item.id, item.supplierId),500)">
If parameters are not transmitted, it is normal
<view @tap="$u.throttle(goGoodsDetai,500)">
Similar Posts:
- uniapp TypeError: Cannot read property ‘replace’ of undefined
- Solve the chrome driver error original error: Chrome not reachable
- Error: Cannot find module ‘@dcloudio/uni-cli-i18n’ [How to Solve]
- export ‘default’ (imported as ‘mod’) was not found in ‘-!../../../../node_module .vue?vue&type=script&lang=ts&’ (possible exports: __esModule)
- How to Solve ReferenceError: internalBinding is not defined
- [Solved] app crashed – waiting for file changes before starting…
- [Solved] NPM run dev error [npm ERR! code ELIFECYCLE]
- [Solved] VUE Error: Component template should contain exactly one root element. If you are using v-if on mu…
- npm run build : No such file or directory [How to Solve]
- How to Solve error: command SH – C node install.js when installing electron