Taro 编译报 Cannot read property 'Provider' of undefined

thirdScriptError sdk uncaught third Error Cannot read property 'Provider' of undefined TypeError: Cannot read property 'Provider' of undefined at http://127.0.0.1:39784/appservice/app.js:39:25 at require (http://127.0.0.1:39784/appservice/dev/WAService.js:1:1113027) at :1:1 at HTMLScriptElement.scriptLoaded (http://127.0.0.1:39784/appservice/appservice?t=1561444547753:1176:21) at HTMLScriptElement.script.onload (http://127.0.0.1:39784/appservice/appservice?t=1561444547753:1188:20) console.error @ VM4284:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 e @ appservice?t=1561444547753:1135 window.onerror @ VM4284:1 scriptLoaded @ appservice?t=1561444547753:1176 script.onload @ appservice?t=1561444547753:1188

  • Problem Cause: Taro Cli version and project version is not consistent with Taro
  • Solution:
  • cnpm i -g @tarojs/cli@1.*.**
  • # 或者升级项目taro版本
  • Taro provided an update command to update the CLI tool itself and projects related to dependence Taro

    Update Taro CLI Tool

    1.   # taro
    2.  $ taro update self
    3.   # asl
    4.  above sea level and tarojs @ g / @ cli latest
    5.   # yarn
    6.   yarn global add @tarojs/cli@latest

    Update project-specific dependency Taro

    $ taro update project  

Guess you like

Origin www.cnblogs.com/qianyy/p/11281371.html