taro icon indicating copy to clipboard operation
taro copied to clipboard

支持 react 19

Open ianzone opened this issue 1 year ago • 2 comments

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

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

ianzone avatar Dec 06 '24 14:12 ianzone

所以现在支持了吗

NiuGuohui avatar Jul 16 '25 03:07 NiuGuohui

所以现在支持了吗

sonofmagic avatar Dec 04 '25 12:12 sonofmagic