无法从“节点模块\@firebase\firestore\dist\rn\index.js”中解析“,/预构建.rn-f9cd27ba.js”

ep6jt1vc  于 2022-12-27  发布在  其他
关注(0)|答案(1)|浏览(78)

我正在写我的代码,我想安装一些模块,所以我安装了所有需要的模块,但之后,我得到这个(无法从“node_modules@firebase\firestore\dist\rn\index.js”中解决“./prebuilt.rn-f9cd27ba.js”)错误一次又一次,所以我尝试卸载我已经安装的所有模块,我也尝试重新安装,运行npm安装,还有更多,但这个问题并没有得到解决,请帮助
错误记录

error node_modules/@firebase/firestore/dist/rn/prebuilt.rn-3ca9030c.js: /abcd/reactNative/node_modules/@firebase/firestore/dist/rn/prebuilt.rn-3ca9030c.js: Cannot read properties of null (reading 'scope').
TypeError: /abcd/reactNative/node_modules/@firebase/firestore/dist/rn/prebuilt.rn-3ca9030c.js: Cannot read properties of null (reading 'scope')
    at getOuterFunction (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:163:27)
    at _guessExecutionStatusRelativeToCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:217:13)
    at NodePath._guessExecutionStatusRelativeTo (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:212:10)
    at _guessExecutionStatusRelativeToDifferentFunctionsInternal (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:271:14)
    at _guessExecutionStatusRelativeToDifferentFunctionsCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:314:18)
    at _guessExecutionStatusRelativeToCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:221:12)
    at NodePath._guessExecutionStatusRelativeTo (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:212:10)
    at _guessExecutionStatusRelativeToDifferentFunctionsInternal (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:271:14)
    at _guessExecutionStatusRelativeToDifferentFunctionsCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:314:18)
    at _guessExecutionStatusRelativeToCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:221:12)
    at _guessExecutionStatusRelativeToDifferentFunctionsInternal (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:295:22)
    at _guessExecutionStatusRelativeToDifferentFunctionsCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:314:18)
    at _guessExecutionStatusRelativeToCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:221:12)
    at NodePath._guessExecutionStatusRelativeTo (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:212:10)
    at _guessExecutionStatusRelativeToDifferentFunctionsInternal (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:271:14)
    at _guessExecutionStatusRelativeToDifferentFunctionsCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:314:18)
    at _guessExecutionStatusRelativeToCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:221:12)
    at _guessExecutionStatusRelativeToDifferentFunctionsInternal (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:295:22)
    at _guessExecutionStatusRelativeToDifferentFunctionsCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:314:18)
    at _guessExecutionStatusRelativeToCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:221:12)
    at _guessExecutionStatusRelativeToDifferentFunctionsInternal (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:295:22)
    at _guessExecutionStatusRelativeToDifferentFunctionsCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:314:18)
    at _guessExecutionStatusRelativeToCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:221:12)
    at _guessExecutionStatusRelativeToDifferentFunctionsInternal (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:295:22)
    at _guessExecutionStatusRelativeToDifferentFunctionsCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:314:18)
    at _guessExecutionStatusRelativeToCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:221:12)
    at _guessExecutionStatusRelativeToDifferentFunctionsInternal (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:295:22)
    at _guessExecutionStatusRelativeToDifferentFunctionsCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:314:18)
    at _guessExecutionStatusRelativeToCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:221:12)
    at _guessExecutionStatusRelativeToDifferentFunctionsInternal (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:295:22)
    at _guessExecutionStatusRelativeToDifferentFunctionsCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:314:18)
    at _guessExecutionStatusRelativeToCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:221:12)
    at NodePath._guessExecutionStatusRelativeTo (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:212:10)
    at _guessExecutionStatusRelativeToDifferentFunctionsInternal (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:271:14)
    at _guessExecutionStatusRelativeToDifferentFunctionsCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:314:18)
    at _guessExecutionStatusRelativeToCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:221:12)
    at _guessExecutionStatusRelativeToDifferentFunctionsInternal (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:295:22)
    at _guessExecutionStatusRelativeToDifferentFunctionsCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:314:18)
    at _guessExecutionStatusRelativeToCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:221:12)
    at NodePath._guessExecutionStatusRelativeTo (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:212:10)
    at _guessExecutionStatusRelativeToDifferentFunctionsInternal (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:271:14)
    at _guessExecutionStatusRelativeToDifferentFunctionsCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:314:18)
    at _guessExecutionStatusRelativeToCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:221:12)
    at NodePath._guessExecutionStatusRelativeTo (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:212:10)
    at _guessExecutionStatusRelativeToDifferentFunctionsInternal (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:271:14)
    at _guessExecutionStatusRelativeToDifferentFunctionsCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:314:18)
    at _guessExecutionStatusRelativeToCached (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:221:12)
    at NodePath._guessExecutionStatusRelativeTo (/abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/introspection.js:212:10)
    at /abcd/reactNative/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js:65:30
km0tfn4u

km0tfn4u1#

确保您运行的是Node.js的最新版本(或者您的项目正在使用的任何版本(nvm可以帮助您))。
删除node_modules目录并再次运行npm install

相关问题