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

3.0.25升3.3.16报错:UnhandledPromiseRejectionWarning: [object Array] #11470

Closed
Tom9402 opened this issue Mar 18, 2022 · 2 comments
Closed

Comments

@Tom9402
Copy link

Tom9402 commented Mar 18, 2022

相关平台

微信小程序

复现仓库

https://gitee.com/tombruce/i-sagene-wx-app.git

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

复现步骤

  1. 打开项目
  2. 安装好依赖
  3. npm start 启动项目

期望结果

编译成功

实际结果

编译失败

环境信息

👽 Taro v3.3.16


  Taro CLI 3.3.16 environment info:
    System:
      OS: Linux 5.10 Deepin 20.4 20.4
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 14.17.3 - /usr/local/bin/node
      npm: 8.1.4 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.3.16 => 3.3.16 
      @tarojs/components: 3.3.16 => 3.3.16 
      @tarojs/mini-runner: 3.3.16 => 3.3.16 
      @tarojs/react: 3.3.16 => 3.3.16 
      @tarojs/router: 3.3.16 => 3.3.16 
      @tarojs/runtime: 3.3.16 => 3.3.16 
      @tarojs/taro: 3.3.16 => 3.3.16 
      @tarojs/webpack-runner: 3.3.16 => 3.3.16 
      babel-preset-taro: 3.3.16 => 3.3.16 
      eslint-config-taro: 3.3.16 => 3.3.16 
      nerv-devtools: ^1.5.7 => 1.5.7 
      nervjs: ^1.5.7 => 1.5.7 
      react: 16.13.1 => 16.13.1 
      taro-ui: 3.0.0-alpha.3 => 3.0.0-alpha.3 
    npmGlobalPackages:
      typescript: 4.5.2

补充信息

[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.vue.mjs]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.vue.vue]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/react/cjs/react-jsx-runtime.production.min.js.vue]
@ ./src/userPages/pages/announcement/index.js (./node_modules/_babel-loader@8.2.1@babel-loader/lib!./src/userPages/pages/announcement/index.js) 7:0-48 8:0-50 47:22-27 56:26-31 59:32-37 60:51-55 64:25-29 67:25-29 72:39-44 74:30-34 77:23-27
@ ./src/userPages/pages/announcement/index.js,./src/userPages/pages/notification/index.js (./node_modules/_babel-loader@8.2.1@babel-loader/lib!./src/userPages/pages/notification/index.js)
Module not found: Error: Can't resolve 'react/jsx-runtime' in '/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/src/userPages/pages/notification'
resolve 'react/jsx-runtime' in '/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/src/userPages/pages/notification'
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/src/userPages/pages/userDetail/node_modules]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/src/userPages/pages/node_modules]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/src/userPages/node_modules]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/src/node_modules]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/node_modules]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/node_modules]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/node_modules]
[/media/tom/node_modules]
[/media/node_modules]
[/node_modules]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.js]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.jsx]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.ts]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.tsx]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.mjs]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.vue]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/react/cjs/react-jsx-runtime.production.min.js]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.js.js]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.js.jsx]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.js.ts]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.js.tsx]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.js.mjs]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.js.vue]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/react/cjs/react-jsx-runtime.production.min.js.js]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.jsx.js]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.jsx.jsx]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.jsx.ts]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.jsx.tsx]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.jsx.mjs]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.jsx.vue]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/react/cjs/react-jsx-runtime.production.min.js.jsx]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.ts.js]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.ts.jsx]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.ts.ts]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.ts.tsx]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.ts.mjs]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.ts.vue]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/react/cjs/react-jsx-runtime.production.min.js.ts]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.tsx.js]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.tsx.jsx]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.tsx.ts]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.tsx.tsx]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.tsx.mjs]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.tsx.vue]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/react/cjs/react-jsx-runtime.production.min.js.tsx]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.mjs.js]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.mjs.jsx]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.mjs.ts]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.mjs.tsx]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.mjs.mjs]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.mjs.vue]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/react/cjs/react-jsx-runtime.production.min.js.mjs]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.vue.js]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.vue.jsx]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.vue.ts]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.vue.tsx]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.vue.mjs]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/_react@16.13.1@react/cjs/react-jsx-runtime.production.min.js.vue.vue]
[/media/tom/77d66779-b774-45bf-b47b-fd3d4186e58b/project/iSagene/wx_app/node_modules/react/cjs/react-jsx-runtime.production.min.js.vue]
@ ./src/userPages/pages/userDetail/index.js (./node_modules/_babel-loader@8.2.1@babel-loader/lib!./src/userPages/pages/userDetail/index.js) 13:0-48 14:0-50 73:26-31 75:32-36 78:25-29 102:26-31 104:32-37 107:25-29 113:25-29
@ ./src/userPages/pages/userDetail/index.js

(node:693620) UnhandledPromiseRejectionWarning: [object Array]
(Use node --trace-warnings ... to show where the warning was created)
(node:693620) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 11)
(node:693620) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@github-actions
Copy link
Contributor

等待热心的小伙伴解决问题中..., 有一些相关的 issues 可能帮助到你!

Thank you so much!

@Tom9402
Copy link
Author

Tom9402 commented Mar 18, 2022

把 react 升级到最新版就解决了,神奇……
主要参考——https://stackoverflow.com/questions/66135494/cant-resolve-react-jsx-runtime-on-bit-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants