1***@163.com
1***@163.com
  • 发布:2019-05-18 10:51
  • 更新:2019-11-18 21:37
  • 阅读:2896

更新最新版本的hbuilderX报错

分类:HBuilderX

appServiceSDKScriptError
10:43:39.420 undefined is not an object (evaluating 't.split'); at uni.switchTab
10:43:39.441 y@(global function):7:2778
10:43:39.463 _n@(global function):7:34020
10:43:39.482 qn@(global function):7:80888
10:43:39.503 (global function):8:844
10:43:39.525 invoke@(global function):8:889
10:43:39.546 invoke@(global function):8:104437
10:43:39.566 X@(global function):8:162031
10:43:39.589 (global function):8:169484
10:43:39.608 Uc@(global function):8:320535
10:43:39.629 (global function):8:209876
10:43:39.650 (global function):8:417090
10:43:39.671 (global function):8:417132
10:43:39.691 (global function):8:173417
10:43:39.712 (global function):7:23623
10:43:39.733 (global function):7:18708
10:43:39.754 (global function):7:18778
10:43:39.775 s@weex service:3:115904
10:43:39.796 callbackFromNative@weex service:3:15800
10:43:39.817 eval code
10:43:39.838 eval@[native code]
10:43:39.859 weex service:3:14896
10:43:39.880 consume@(weex framework):1:20313
10:43:39.903 map@[native code]
10:43:39.923 (weex framework):1:178111

2019-05-18 10:51 负责人:无 分享
已邀请:
拓荒

拓荒

我的今天更新完也报错

Module build failed (from ./node_modules/vue-loader/lib/loaders/templateLoader.js):
10:58:49.214 TypeError: Cannot read property 'split' of undefined
10:58:49.217 at getIdentifierName (S:\Programs\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:13:23)
10:58:49.218 at getIdentifierName (S:\Programs\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:9:12)
10:58:49.224 at MemberExpression (S:\Programs\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:41:29)
10:58:49.225 at NodePath._call (S:\Programs\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\traverse\lib\path\context.js:53:20)
10:58:49.232 at NodePath.call (S:\Programs\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\traverse\lib\path\context.js:40:17)
10:58:49.233 at NodePath.visit (S:\Programs\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\traverse\lib\path\context.js:88:12)
10:58:49.240 at TraversalContext.visitQueue (S:\Programs\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\traverse\lib\context.js:118:16)
10:58:49.241 at TraversalContext.visitSingle (S:\Programs\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\traverse\lib\context.js:90:19)
10:58:49.247 at TraversalContext.visit (S:\Programs\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\traverse\lib\context.js:146:19)
10:58:49.247 at Function.traverse.node (S:\Programs\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\traverse\lib\index.js:94:17)
10:58:49.257 at traverse (S:\Programs\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\traverse\lib\index.js:76:12)
10:58:49.258 at NodePath.traverse (S:\Programs\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\traverse\lib\path\index.js:161:24)
10:58:49.267 at state.scoped.find.scoped (S:\Programs\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:29:12)
10:58:49.267 at Array.find (native)
10:58:49.275 at findScoped (S:\Programs\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:20:31)
10:58:49.276 at getMemberExpr (S:\Programs\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\member-expr.js:59:18)
10:58:49.281 ERROR Build failed with errors.

  • 5***@qq.com

    怎么解决啊 ,我今天刚更新

    2019-06-13 19:42

  • 拓荒

    回复 5***@qq.com:我更新完再下一个版本就是好了。

    2019-06-13 20:00

wyx2333333

wyx2333333

我也是 首页判断登录跳转时候跳不过去白屏报这错

JohnnyZh

JohnnyZh - 80后IT码农

出现同样问题,请解答

JohnnyZh

JohnnyZh - 80后IT码农

解决了,渲染问题
加一个定时器,或者监听就可以解决问题

  • wyx2333333

    settimeout也会随机出现白屏。1S不能保证已渲染完成。

    2019-05-21 12:18

  • JohnnyZh

    回复 wyx2333333: 定时器不能保证的话,可能需要监听一下这个渲染状态。

    2019-05-23 21:54

  • wyx2333333

    回复 JohnnyZh: 最新版本已经修复了

    2019-05-24 09:05

予象

予象

遇到同样的问题,什么问题造成的?有官方解释吗?

  • 1***@163.com (作者)

    你先看看你APP启动第一项的那个页面是否有问题 我修复了

    2019-05-21 09:45

  • 9***@qq.com

    回复 1***@163.com: 怎么修复的?

    2019-05-22 14:55

  • JohnnyZh

    我这边是渲染造成的

    你这边可以查看错误代码。分析用

    2019-05-23 21:55

5***@qq.com

5***@qq.com - shuainan

[HBuilder] 19:09:14.443 Module build failed (from ./node_modules/vue-loader/lib/loaders/templateLoader.js):
[HBuilder] 19:09:14.450 TypeError: Cannot read property 'charAt' of undefined
[HBuilder] 19:09:14.451 at parseEvent (C:\Users\50554\Desktop\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:181:20)
[HBuilder] 19:09:14.458 at _processEvent (C:\Users\50554\Desktop\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:328:9)
[HBuilder] 19:09:14.467 at processEvent (C:\Users\50554\Desktop\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\event.js:387:5)
[HBuilder] 19:09:14.475 at processes.forEach.process (C:\Users\50554\Desktop\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:34:5)
[HBuilder] 19:09:14.482 at Array.forEach (<anonymous>)
[HBuilder] 19:09:14.490 at traverseData (C:\Users\50554\Desktop\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\data\index.js:33:13)
[HBuilder] 19:09:14.498 at Object.CallExpression (C:\Users\50554\Desktop\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\script\traverse\visitor.js:165:56)
[HBuilder] 19:09:14.499 at NodePath._call (C:\Users\50554\Desktop\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\traverse\lib\path\context.js:53:20)
[HBuilder] 19:09:14.508 at NodePath.call (C:\Users\50554\Desktop\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\traverse\lib\path\context.js:40:17)
[HBuilder] 19:09:14.517 at NodePath.visit (C:\Users\50554\Desktop\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\traverse\lib\path\context.js:88:12)
[HBuilder] 19:09:14.527 at TraversalContext.visitQueue (C:\Users\50554\Desktop\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\traverse\lib\context.js:118:16)
[HBuilder] 19:09:14.536 at TraversalContext.visitMultiple (C:\Users\50554\Desktop\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\traverse\lib\context.js:85:17)
[HBuilder] 19:09:14.545 at TraversalContext.visit (C:\Users\50554\Desktop\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\traverse\lib\context.js:144:19)
[HBuilder] 19:09:14.554 at Function.traverse.node (C:\Users\50554\Desktop\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\traverse\lib\index.js:94:17)
[HBuilder] 19:09:14.563 at NodePath.visit (C:\Users\50554\Desktop\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\traverse\lib\path\context.js:95:18)
[HBuilder] 19:09:14.572 at TraversalContext.visitQueue (C:\Users\50554\Desktop\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\node_modules\@babel\traverse\lib\context.js:118:16)
[HBuilder] 19:09:14.581 ERROR Build failed with errors.
[HBuilder] 19:09:14.589 项目 'app'导出失败

慢慢成长

慢慢成长

最新版本里面又出现了undefined is not an object (evaluating 't.split'); at uni.switchTab,请问怎么处理

  • 慢慢成长

    我这个是在同一个页面里面第二次执行就报这个错了,第一次是可以的

    2019-11-18 21:38

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