NervJS / taro-zhihu-sample

a demo based on taro
346 stars 91 forks source link

你好:H5 浏览器报错,寻求帮助 #11

Closed liangtongzhuo closed 5 years ago

liangtongzhuo commented 5 years ago

非常感谢开源 我在运行 H5 浏览器报了以下错误,不知道如何解决 谢谢

log.js?1afd:24 [HMR] Waiting for update signal from WDS...
index.js?1e21:1504 Uncaught TypeError: _taroH2.default.initTabBarApis is not a function
    at App.componentWillMount (app.js?d0a8:61)
    at eval (index.js?1e21:1528)
    at errorCatcher (index.js?1e21:1481)
    at mountComponent (index.js?1e21:1527)
    at ComponentWrapper.init (index.js?1e21:1869)
    at createElement (index.js?1e21:1384)
    at mountVNode (index.js?1e21:1516)
    at Object.render (index.js?1e21:1795)
    at eval (app.js?d0a8:69)
    at Object../.temp/app.js (app.js:805)
componentWillMount @ app.js?d0a8:61
(anonymous) @ index.js?1e21:1528
errorCatcher @ index.js?1e21:1481
mountComponent @ index.js?1e21:1527
init @ index.js?1e21:1869
createElement @ index.js?1e21:1384
mountVNode @ index.js?1e21:1516
render @ index.js?1e21:1795
(anonymous) @ app.js?d0a8:69
./.temp/app.js @ app.js:805
__webpack_require__ @ app.js:725
fn @ app.js:102
0 @ app.js:2260
__webpack_require__ @ app.js:725
(anonymous) @ app.js:792
(anonymous) @ app.js:795
client?742c:77 [WDS] Hot Module Replacement enabled.
luckyadam commented 5 years ago

升级一下项目依赖到最新版本

liangtongzhuo commented 5 years ago

升级一下项目依赖到最新版本

谢谢,搞定了。