Hi All,
I have been facing this issue for quite some time regarding setting up my React Native environment. I have started using ESLint config Rallycoding in Atom. I am getting the below error --
Unable to resolve path to module 'react' (import/no-unresolved).
Unable to resolve path to module 'react-native' (import/no-unresolved).
My .eslintrc file goes here --
{
"extends": "rallycoding"
}
And my package.json file also goes here --
{
"name": "FirstReactAndroidApp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start"
},
"dependencies": {
"babel-eslint": "^6.1.2",
"eslint": "^3.19.0",
"eslint-import-resolver-node": "^0.2.3",
"eslint-plugin-class-property": "^1.0.6",
"eslint-plugin-import": "^1.16.0",
"eslint-plugin-jsx-a11y": "^2.2.3",
"eslint-plugin-react": "^6.10.3",
"react": "15.3.1",
"react-native": "0.33.0"
},
"devDependencies": {
"eslint-config-rallycoding": "^3.2.0"
}
}
Please help me with this issue. Let me know incase you need any more info.
I'm having the same exact problem. Did you ever find a solution?
Same here, any luck finding a fix?
I'm facing the same issue 馃憥 any luck with it?
same issue here, and I think I figured it out, finally! it's a case sensitivity issue.
if you opened your project directory from Terminal using a series of "cd"s, followed by the command line "atom .", the full path sent to Atom is then somehow recognised all in lower case, eg. it is displayed at the window header in lower case, like below,

but it really needs to be in the correct case, ie. if your path had upper cases, they need to be in upper case, like below,

the way to fix it I found is to simply open the project from Atom itself, via, File > Open > [Project Folder] once in the correct case, the unresolved error went away for me.
please try for yourself and see if it works.
I'm going to close this; if it turns out not to be editor-related, I'm happy to reopen.
hi i having this problem ,
how can i fix it?
{
"parser": "babel-eslint",
"extends": "rallycoding",
"plugins": [
"react",
"import",
"jsx-a11y"
] }
Most helpful comment
same issue here, and I think I figured it out, finally! it's a case sensitivity issue.
if you opened your project directory from Terminal using a series of "cd"s, followed by the command line "atom .", the full path sent to Atom is then somehow recognised all in lower case, eg. it is displayed at the window header in lower case, like below,

but it really needs to be in the correct case, ie. if your path had upper cases, they need to be in upper case, like below,

the way to fix it I found is to simply open the project from Atom itself, via, File > Open > [Project Folder] once in the correct case, the unresolved error went away for me.
please try for yourself and see if it works.