Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(thread_id_key != 0x7777), function find_thread_id_key, file ../src/coroutine.cc, line 134

i'm working on a vue program, i tried npm run serve then i got this:

66% building 670/715 modules 45 active /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/echarts/lib/chart/graph.js## There is an issue with `node-fibers` ##
`/Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/fibers/bin/darwin-x64-93/fibers.node` is missing.

Try running this to fix the issue: /usr/local/Cellar/node/16.0.0/bin/node /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/fibers/build
Error: Cannot find module '/Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/fibers/bin/darwin-x64-93/fibers'
Require stack:
- /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/fibers/fibers.js
- /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/sass-loader/dist/getSassOptions.js
- /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/sass-loader/dist/index.js
- /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/sass-loader/dist/cjs.js
- /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/loader-runner/lib/loadLoader.js
- /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/loader-runner/lib/LoaderRunner.js
- /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/webpack/lib/NormalModule.js
- /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/webpack/lib/NormalModuleFactory.js
- /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/webpack/lib/Compiler.js
- /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/webpack/lib/webpack.js
- /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/@vue/cli-service/lib/commands/serve.js
- /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/@vue/cli-service/lib/Service.js
- /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/@vue/cli-service/bin/vue-cli-service.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at Function.Module._load (node:internal/modules/cjs/loader:773:27)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:93:18)
    at Object.<anonymous> (/Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/fibers/fibers.js:14:39)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Function.Module._load (node:internal/modules/cjs/loader:828:14)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:93:18)
    at getSassOptions (/Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/sass-loader/dist/getSassOptions.js:49:25)
    at Object.loader (/Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/sass-loader/dist/index.js:48:51)
    at LOADER_EXECUTION (/Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/loader-runner/lib/LoaderRunner.js:119:14)
    at runSyncOrAsync (/Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/loader-runner/lib/LoaderRunner.js:120:4)
    at iterateNormalLoaders (/Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
69% building 1077/1094 modules 17 active /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/echarts/lib/coord/radar/IndicatorAxis.js## There is an issue with `node-fibers` ##
`/Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/fibers/bin/darwin-x64-93/fibers.node` is missing.

Try running this to fix the issue: /usr/local/Cellar/node/16.0.0/bin/node /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/fibers/build

then i runnode /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/fibers/buildto compile fiber. Afer build i run npm run serve again. then error shows as below:

> [email protected] serve
> vue-cli-service serve

 INFO  Starting development server...
42% building 268/307 modules 39 active /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/core-js/modules/es.array.splice.jsAssertion failed: (thread_id_key != 0x7777), function find_thread_id_key, file ../src/coroutine.cc, line 134.
Abort trap: 6

i have tried reinstall node&&vue. My system is MacOs 11.2.3, node version:16.0.0, npm version: 7.11.0

Any suggesion would be appreciated!

like image 458
Azure Avatar asked Apr 30 '21 07:04

Azure


Video Answer


2 Answers

This error is due to the deprecation of node-fibers for node >=16.x released on April 20, 2021.

On the fibers project README:

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.

Downgrading node to a lower version (15.14.0) with nvm did the trick on my end

Edit: More detailed answer

like image 95
user2583808 Avatar answered Oct 19 '22 11:10

user2583808


I have an exact problem with nuxt project. My solution is to uninstall from package.json fiber

like image 13
Василий Пивоваров Avatar answered Oct 19 '22 11:10

Василий Пивоваров