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

支持 react 19 #16996

Open
ianzone opened this issue Dec 6, 2024 · 0 comments
Open

支持 react 19 #16996

ianzone opened this issue Dec 6, 2024 · 0 comments

Comments

@ianzone
Copy link

ianzone commented Dec 6, 2024

这个特性解决了什么问题?

react 19 已正式发布,当前编译报错

✖ Webpack
  Compiled with some errors in 1.52s

编译  发现入口  src/app.ts
编译  发现页面  src/pages/index/index.tsx
✖ Errors:

ModuleNotFoundError: Module not found: Error: Package path ./cjs/react-jsx-runtime.production.min.js is not exported from package D:\test\taro-init\node_modules\react (see exports field in D:\test\taro-init\node_modules\react\package.json)

→ Watching... [2024/12/6 22:16:32]

node:internal/process/promises:392
      new UnhandledPromiseRejection(reason);
      ^

UnhandledPromiseRejection: 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(). The promise rejected with the reason "[object Array]".
    at throwUnhandledRejectionsMode (node:internal/process/promises:392:7)
    at processPromiseRejections (node:internal/process/promises:475:17)
    at processTicksAndRejections (node:internal/process/task_queues:106:32) {
  code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v22.12.0
error: script "dev:weapp" exited with code 1

这个 API 长什么样?

无缝升级react19

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

1 participant