刚更新2.7.9就报错了,导致没法继续开发
一编译就报错,之后点击tabbar又报错,页面空白
操作系统:win10
测试手机:华为
纯Nvue开发
13:48:08.915 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
13:48:08.922 TypeError: staticClass.trim is not a function
13:48:08.945 at parseStaticClass (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:4453:33)
13:48:08.954 at Array.transformNode (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:4414:13)
13:48:08.954 at processElement (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:1738:28)
13:48:08.957 at closeElement (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:1393:17)
13:48:08.958 at Object.end (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:1598:7)
13:48:08.962 at parseEndTag (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:533:19)
13:48:08.963 at parseHTML (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:347:11)
13:48:08.967 at parse (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:1481:3)
13:48:08.968 at baseCompile (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:4395:13)
13:48:08.973 at Object.compile (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:4370:22)
13:48:08.974 at compile (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:5040:25)
13:48:08.978 at compileTemplate (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\auto-components.js:75:15)
13:48:08.979 at compiler.compile (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\build\vue-loader.conf.js:115:10)
13:48:08.983 at actuallyCompile (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:70:96)
13:48:08.983 at compileTemplate (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:31:16)
13:48:08.987 at Object.module.exports (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-loader\lib\loaders\templateLoader.js:46:20)
13:48:08.988 ERROR Build failed with errors.
13:48:09.270 正在建立手机连接...
13:48:10.086 手机端调试基座版本号为2.7.9,版本号相同,跳过基座更新
13:48:10.232 正在同步手机端程序文件...
13:48:11.448 同步手机端程序文件完成
13:48:11.572 正在启动HBuilder调试基座...
13:48:15.175 如手机上HBuilder调试基座未启动,请手动启动...
13:48:15.594 TypeError: staticClass.trim is not a function
13:48:15.614 at parseStaticClass (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:4453:33)
13:48:15.635 at Array.transformNode (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:4414:13)
13:48:15.656 at processElement (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:1738:28)
13:48:15.677 at closeElement (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:1393:17)
13:48:15.698 at Object.end (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:1598:7)
13:48:15.718 at parseEndTag (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:533:19)
13:48:15.739 at parseHTML (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:347:11)
13:48:15.760 at parse (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:1481:3)
13:48:15.781 at baseCompile (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:4395:13)
13:48:15.802 at Object.compile (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:4370:22)
13:48:15.822 at compile (D:\Program
13:48:15.843 at compileTemplate (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\auto-components.js:75:15)
13:48:15.864 at compiler.compile (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\build\vue-loader.conf.js:115:10)
13:48:15.885 at actuallyCompile (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:70:96)
13:48:15.906 at compileTemplate (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:31:16)
13:48:15.927 at Object.module.exports (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-loader\lib\loaders\templateLoader.js:46:20)
13:48:15.948 weex createInstanceContext:591:16
13:48:15.968 __webpack_require__@weex createInstanceContext:21:34
13:48:15.989 weex createInstanceContext:577:715
13:48:16.010 __webpack_require__@weex createInstanceContext:21:34
13:48:16.031 eval code
13:48:16.052 eval@[native code]
13:48:16.073 weex createInstanceContext:564:5
13:48:16.094 __webpack_require__@weex createInstanceContext:21:34
13:48:16.115 weex createInstanceContext:284:32
13:48:16.136 __webpack_require__@weex createInstanceContext:21:34
13:48:16.157 weex createInstanceContext:257:844
13:48:16.178 __webpack_require__@weex createInstanceContext:21:34
13:48:16.199 eval code
13:48:16.220 eval@[native code]
13:48:16.241 weex createInstanceContext:244:5
13:48:16.262 __webpack_require__@weex createInstanceContext:21:34
13:48:16.283 eval code
13:48:16.304 eval@[native code]
13:48:16.325 weex createInstanceContext:232:5
13:48:16.345 __webpack_require__@weex createInstanceContext:21:34
13:48:16.366 weex createInstanceContext:85:37
13:48:16.387 global code@weex createInstanceContext:86:12
13:48:16.429 getTemplateInfo== template md5 fc7bdb98aa0a2a778005bc83ebcde00c length 120403 base64 md5 /HvbmKoKKneABbyD683gDA== response header {"templateSourceBase64MD5":["/HvbmKoKKneABbyD683gDA=="],"templateSourceMD5":["fc7bdb98aa0a2a778005bc83ebcde00c"]}[___Connect_-640044010___END]
13:48:16.450 [JS Framework] Failed to execute the callback function:
13:48:16.471 TypeError: undefined is not an object (evaluating 'i.$vm.__call_hook')
13:48:16.492 reportJSException >>>> exception function:callJS, exception:JavaScript execute error!Exception: TypeError: undefined is not an object (evaluating 'i.$vm.__call_hook')
13:48:16.513 (weex framework):2:144424
13:48:16.534 (weex framework):2:144666
13:48:16.555 switchTab@(weex framework):2:143826
13:48:16.576 (weex framework):2:68213
13:48:16.597 (weex framework):2:186027
13:48:16.618 (weex framework):2:191839
13:48:16.639 (weex framework):2:85663
13:48:16.660 consume@(weex framework):2:1418
13:48:16.681 map@[native code]
13:48:16.722 getTemplateInfo== template md5 null ,httpHeader:{}
13:48:17.996 [JS Framework] Failed to execute the callback function:
13:48:18.017 TypeError: undefined is not an object (evaluating 'a.$vm.__call_hook')
13:48:18.038 reportJSException >>>> exception function:callJS, exception:JavaScript execute error!Exception: TypeError: undefined is not an object (evaluating 'a.$vm.__call_hook')
13:48:18.059 (weex framework):2:144608
13:48:18.080 (weex framework):2:144666
13:48:18.101 switchTab@(weex framework):2:143826
13:48:18.122 (weex framework):2:68213
13:48:18.143 (weex framework):2:186027
13:48:18.164 (weex framework):2:191839
13:48:18.185 (weex framework):2:85663
13:48:18.206 consume@(weex framework):2:1418
13:48:18.226 map@[native code]
13:48:18.268 getTemplateInfo== template md5 null ,httpHeader:{}
13:48:19.105 [JS Framework] Failed to execute the callback function:
13:48:19.126 TypeError: undefined is not an object (evaluating 'i.$vm.__call_hook')
13:48:20.892 已存在待跳转页面/pages/mine/mine,请不要连续多次跳转页面/pages/book/book
13:48:21.227 已存在待跳转页面/pages/mine/mine,请不要连续多次跳转页面/pages/read/read
13:48:23.091 已存在待跳转页面/pages/mine/mine,请不要连续多次跳转页面/pages/book/book
13:48:23.384 已存在待跳转页面/pages/mine/mine,请不要连续多次跳转页面/pages/index/index
13:48:43.735 App Hide at App.vue:18
13:55:10.217 App Show at App.vue:15
13:55:13.746 已存在待跳转页面/pages/mine/mine,请不要连续多次跳转页面/pages/book/book
13:55:14.754 已存在待跳转页面/pages/mine/mine,请不要连续多次跳转页面/pages/message/message
13:55:15.227 已存在待跳转页面/pages/mine/mine,请不要连续多次跳转页面/pages/mine/mine
13:55:16.676 已存在待跳转页面/pages/mine/mine,请不要连续多次跳转页面/pages/read/read
2 个回复
想得美 (作者)
破晓君
你这个问题 我也遇到了 排查了很久 你找一找 界面里面有没有 "<view class></view>" 定义了空的class
想得美 (作者)
最新版的HBuilder X 又好了
2020-07-07 01:46