Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

项目从taro2.2.11升级到3.0.17 编译成功 小程序运行报错 #8273

Closed
ywanhzy opened this issue Dec 16, 2020 · 1 comment
Closed
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@ywanhzy
Copy link

ywanhzy commented Dec 16, 2020

相关平台

微信小程序

小程序基础库: 2.14.0
使用框架: React

复现步骤

项目从taro2.2.11升级到3.0.17 编译成功 小程序运行报错

期望结果

小程序运行正常

实际结果

报错信息
1、modification of global variable 'Function.prototype.toString' is not allowed when using plugins at app.json.
2、Minified React error #143; visit https://reactjs.org/docs/error-decoder.html?invariant=143 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
Error: Minified React error #143; visit https://reactjs.org/docs/error-decoder.html?invariant=143 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
3、pages/index/index]错误:
TypeError: Super expression must either be null or a function

环境信息

  Taro CLI 3.0.17 environment info:
    System:
      OS: macOS 10.15
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.13.0 - /usr/local/bin/node
      Yarn: 1.15.2 - /usr/local/bin/yarn
      npm: 6.9.0 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.0.17 => 3.0.17 
      @tarojs/components: ^3.0.17 => 3.0.17 
      @tarojs/mini-runner: ^3.0.17 => 3.0.17 
      @tarojs/react: ^3.0.17 => 3.0.17 
      @tarojs/runtime: ^3.0.17 => 3.0.17 
      @tarojs/taro: ^3.0.17 => 3.0.17 
      @tarojs/webpack-runner: 3.0.17 => 3.0.17 
      babel-preset-taro: 3.0.17 => 3.0.17 
      eslint-config-taro: 3.0.17 => 3.0.17 
      nerv-devtools: ^1.5.6 => 1.5.6 
      nervjs: ^1.5.6 => 1.5.6 
      react: ^17.0.1 => 17.0.1 
      taro-ui: ^3.0.0-alpha.3 => 3.0.0-alpha.3 
    npmGlobalPackages:
      typescript: 4.0.3

补充信息

我是按照升级文档配置的

@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Dec 16, 2020
@ywanhzy
Copy link
Author

ywanhzy commented Dec 26, 2020

@Chen-jj 我没有使用JWT 问题2 我把 "mobx-react": "^5.4.4", 改为"mobx-react": "^6.1.4",就正常了 问题3 是我部分组件没有使用引用react

@ywanhzy ywanhzy closed this as completed Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

1 participant