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

Fiber 无法再兼容 node 16 以上了 #9291

Closed
hyacinthus opened this issue May 8, 2021 · 3 comments · Fixed by #9324
Closed

Fiber 无法再兼容 node 16 以上了 #9291

hyacinthus opened this issue May 8, 2021 · 3 comments · Fixed by #9324
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Milestone

Comments

@hyacinthus
Copy link

相关平台

H5

复现仓库

laverdet/node-fibers#451
浏览器版本: any
使用框架: React

复现步骤

npm run dev:h5

期望结果

编译通过

实际结果

👽 Taro v3.2.8

Assertion failed: (thread_id_key != 0x7777), function find_thread_id_key, file ../src/coroutine.cc, line 134.
[1] 82886 abort npm run build:h5

环境信息

👽 Taro v3.2.8


  Taro CLI 3.2.8 environment info:
    System:
      OS: macOS 11.2.3
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 16.1.0 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 7.11.2 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.2.8 => 3.2.8 
      @tarojs/components: 3.2.8 => 3.2.8 
      @tarojs/mini-runner: 3.2.8 => 3.2.8 
      @tarojs/react: 3.2.8 => 3.2.8 
      @tarojs/runtime: 3.2.8 => 3.2.8 
      @tarojs/taro: 3.2.8 => 3.2.8 
      @tarojs/webpack-runner: 3.2.8 => 3.2.8 
      babel-preset-taro: 3.2.8 => 3.2.8 
      eslint-config-taro: 3.2.8 => 3.2.8 
      react: ^17.0.0 => 17.0.2 
      taro-ui: ^3.0.0-alpha.3 => 3.0.0-alpha.10 



补充信息

laverdet/node-fibers#451

Update [April 13th, 2021] -- Fibers is not compatible with nodejs v16.0.0 or later. Unfortunately, v8 commit dacc2fee0f is a breaking change and workarounds are non-trivial.

@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels May 8, 2021
@cikichen
Copy link

+1,同样的问题

@netfishx
Copy link
Contributor

netfishx commented May 12, 2021

看源码得知,fibers 是用于 sassLoader 的。这个功能并不是所有人都需要的,所以不要默认依赖可以吗

目前 sass-loader 也不建议再用 fibers。
https://github.com/webpack-contrib/sass-loader/issues/939

@Chen-jj Chen-jj linked a pull request May 14, 2021 that will close this issue
17 tasks
@Chen-jj Chen-jj added this to the 3.2.9 milestone May 14, 2021
luckyadam added a commit that referenced this issue May 19, 2021
* fix: 移除sass-loader 中不必要的 fibers 依赖

* fix: 移除sass-loader 中不必要的 fibers 依赖

Co-authored-by: Li,Weitao <[email protected]>
@lemondreamtobe
Copy link

没有解决方案吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants