(thread_id_key != 0x7777),函数 find_thread_id_key,文件 ../src/coroutine.cc,第 134 行

(thread_id_key != 0x7777), function find_thread_id_key, file ../src/coroutine.cc, line 134((thread_id_key != 0x7777),函数 find_thread_id_key,文件 ../src/coroutine.cc,第 134 行)

本文介绍了(thread_id_key != 0x7777),函数 find_thread_id_key,文件 ../src/coroutine.cc,第 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:

> omega-fe@1.1.0 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!

解决方案

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

这篇关于(thread_id_key != 0x7777),函数 find_thread_id_key,文件 ../src/coroutine.cc,第 134 行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:(thread_id_key != 0x7777),函数 find_thread_id_key,文件 ../src/coroutine.cc,第 134 行

基础教程推荐