简体   繁体   English

无法解析模块“react-native-screens”(ESLint)的路径

[英]Unable to resolve path to module 'react-native-screens' (ESLint)

Got this lint error in my VS Code:在我的 VS Code 中出现这个 lint 错误:

Unable to resolve path to module 'react-native-screens'.eslint(import/no-unresolved) module "react-native-screens"无法解析模块“react-native-screens”的路径。eslint(import/no-unresolved) 模块“react-native-screens”

You need to install 3 more libs react-native-gesture-handler , react-native-reanimated , and react-native-screens in order to work with navigation.您需要再安装 3 个库react-native-gesture-handlerreact-native-reanimatedreact-native-screens才能使用导航。

Run this code :运行此代码:

npm install --save react-native-gesture-handler react-native-reanimated react-native-screens

For more information visit - here欲了解更多信息,请访问 - 这里

If you have the only issue with screens package install only that dependency如果您对屏幕包有唯一的问题,请仅安装该依赖项

Hope this helps :)希望这可以帮助 :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 react-native-screens: compileDebugKotlin 错误 - react-native-screens: compileDebugKotlin Error eslint导入webpack:无法解析模块路径 - eslint imports in webpack: Unable to resolve path to module eslint:无法解析模块“src/interfaces”的路径 - eslint: Unable to resolve path to module 'src/interfaces' 尝试导入错误:“shouldUseActivityState”未从“react-native-screens”导出 - Attempted import error: 'shouldUseActivityState' is not exported from 'react-native-screens' React Native (Typescript) 绝对路径无法解析模块 - React Native (Typescript) Absolute path unable to resolve module React native Typescript 路径别名无法解析模块 - React native Typescript path alias unable to resolve module 无法在React本机应用程序中解析模块'./package.json'的路径 - Unable to resolve path to module './package.json' in React native application react-native-reanimated react-native-screens 未打开反应本机应用程序 - react native Application doesn't open with react-native-reanimated react-native-screens installed React Native:无法解析模块 - React Native: Unable to Resolve Module tsconfig 中的 eslint + typescript + 路径:ESLint:无法解析模块“@components/some-module”的路径。(import/no-unresolved) - eslint + typescript + path in tsconfig: ESLint: Unable to resolve path to module '@components/some-module'.(import/no-unresolved)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM