[eslint]'react-redux' should be listed in the project's dependency+unable to resolve path to module...
I'm following an Udemy course on react native, and the instructor has just introduced Redux. I did followed his instructions and typed in
npm install --save redux react-redux.
in the command window. However, in my text editor I get these two error messages (error message from ESlint).
I tried to google what dependencies are, and from what I understood they are modules that are required for the app to run. Regardless, I tried
npm i -S react-redux
as well as reinstalling, but it did not work.(message from Command Center)
May somebody explain to me how I can solve these errors and what those messages in command center mean?
reactjs react-native redux react-redux eslint
add a comment |
I'm following an Udemy course on react native, and the instructor has just introduced Redux. I did followed his instructions and typed in
npm install --save redux react-redux.
in the command window. However, in my text editor I get these two error messages (error message from ESlint).
I tried to google what dependencies are, and from what I understood they are modules that are required for the app to run. Regardless, I tried
npm i -S react-redux
as well as reinstalling, but it did not work.(message from Command Center)
May somebody explain to me how I can solve these errors and what those messages in command center mean?
reactjs react-native redux react-redux eslint
Does the ESLint error go away if you restart your server? Also, adding the relevant error messages/code in your question is WAY better than linking to pictures of the code. Please update your question.
– jmargolisvt
Nov 14 '18 at 23:40
No it doesn't. I added "import/no-extraneous-dependencies" : ["error", {"devDependencies": true}] to make it go away.
– Chen W
Nov 15 '18 at 0:25
Well, that's one way to "solve" your problem. ESlint is pointing to something you probably should fix rather than ignore. Can you please add to your question your package.json file?
– jmargolisvt
Nov 15 '18 at 1:34
add a comment |
I'm following an Udemy course on react native, and the instructor has just introduced Redux. I did followed his instructions and typed in
npm install --save redux react-redux.
in the command window. However, in my text editor I get these two error messages (error message from ESlint).
I tried to google what dependencies are, and from what I understood they are modules that are required for the app to run. Regardless, I tried
npm i -S react-redux
as well as reinstalling, but it did not work.(message from Command Center)
May somebody explain to me how I can solve these errors and what those messages in command center mean?
reactjs react-native redux react-redux eslint
I'm following an Udemy course on react native, and the instructor has just introduced Redux. I did followed his instructions and typed in
npm install --save redux react-redux.
in the command window. However, in my text editor I get these two error messages (error message from ESlint).
I tried to google what dependencies are, and from what I understood they are modules that are required for the app to run. Regardless, I tried
npm i -S react-redux
as well as reinstalling, but it did not work.(message from Command Center)
May somebody explain to me how I can solve these errors and what those messages in command center mean?
reactjs react-native redux react-redux eslint
reactjs react-native redux react-redux eslint
asked Nov 14 '18 at 23:09
Chen WChen W
122
122
Does the ESLint error go away if you restart your server? Also, adding the relevant error messages/code in your question is WAY better than linking to pictures of the code. Please update your question.
– jmargolisvt
Nov 14 '18 at 23:40
No it doesn't. I added "import/no-extraneous-dependencies" : ["error", {"devDependencies": true}] to make it go away.
– Chen W
Nov 15 '18 at 0:25
Well, that's one way to "solve" your problem. ESlint is pointing to something you probably should fix rather than ignore. Can you please add to your question your package.json file?
– jmargolisvt
Nov 15 '18 at 1:34
add a comment |
Does the ESLint error go away if you restart your server? Also, adding the relevant error messages/code in your question is WAY better than linking to pictures of the code. Please update your question.
– jmargolisvt
Nov 14 '18 at 23:40
No it doesn't. I added "import/no-extraneous-dependencies" : ["error", {"devDependencies": true}] to make it go away.
– Chen W
Nov 15 '18 at 0:25
Well, that's one way to "solve" your problem. ESlint is pointing to something you probably should fix rather than ignore. Can you please add to your question your package.json file?
– jmargolisvt
Nov 15 '18 at 1:34
Does the ESLint error go away if you restart your server? Also, adding the relevant error messages/code in your question is WAY better than linking to pictures of the code. Please update your question.
– jmargolisvt
Nov 14 '18 at 23:40
Does the ESLint error go away if you restart your server? Also, adding the relevant error messages/code in your question is WAY better than linking to pictures of the code. Please update your question.
– jmargolisvt
Nov 14 '18 at 23:40
No it doesn't. I added "import/no-extraneous-dependencies" : ["error", {"devDependencies": true}] to make it go away.
– Chen W
Nov 15 '18 at 0:25
No it doesn't. I added "import/no-extraneous-dependencies" : ["error", {"devDependencies": true}] to make it go away.
– Chen W
Nov 15 '18 at 0:25
Well, that's one way to "solve" your problem. ESlint is pointing to something you probably should fix rather than ignore. Can you please add to your question your package.json file?
– jmargolisvt
Nov 15 '18 at 1:34
Well, that's one way to "solve" your problem. ESlint is pointing to something you probably should fix rather than ignore. Can you please add to your question your package.json file?
– jmargolisvt
Nov 15 '18 at 1:34
add a comment |
2 Answers
2
active
oldest
votes
ENOENT: no such file or directory, open 'C:Usersadminpackage.json'
says that the project folder is not having "package.json" which will be available only in project's root folder
Please make sure you do npm install in project's root folder
I think that's where I messed up!
– Chen W
Nov 15 '18 at 19:01
add a comment |
I added "import/no-extraneous-dependencies" : ["error", {"devDependencies": true}] in my .eslintrc and it got rid of the error.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53310113%2feslintreact-redux-should-be-listed-in-the-projects-dependencyunable-to-res%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
ENOENT: no such file or directory, open 'C:Usersadminpackage.json'
says that the project folder is not having "package.json" which will be available only in project's root folder
Please make sure you do npm install in project's root folder
I think that's where I messed up!
– Chen W
Nov 15 '18 at 19:01
add a comment |
ENOENT: no such file or directory, open 'C:Usersadminpackage.json'
says that the project folder is not having "package.json" which will be available only in project's root folder
Please make sure you do npm install in project's root folder
I think that's where I messed up!
– Chen W
Nov 15 '18 at 19:01
add a comment |
ENOENT: no such file or directory, open 'C:Usersadminpackage.json'
says that the project folder is not having "package.json" which will be available only in project's root folder
Please make sure you do npm install in project's root folder
ENOENT: no such file or directory, open 'C:Usersadminpackage.json'
says that the project folder is not having "package.json" which will be available only in project's root folder
Please make sure you do npm install in project's root folder
answered Nov 15 '18 at 1:35
Ram Babu SRam Babu S
76211022
76211022
I think that's where I messed up!
– Chen W
Nov 15 '18 at 19:01
add a comment |
I think that's where I messed up!
– Chen W
Nov 15 '18 at 19:01
I think that's where I messed up!
– Chen W
Nov 15 '18 at 19:01
I think that's where I messed up!
– Chen W
Nov 15 '18 at 19:01
add a comment |
I added "import/no-extraneous-dependencies" : ["error", {"devDependencies": true}] in my .eslintrc and it got rid of the error.
add a comment |
I added "import/no-extraneous-dependencies" : ["error", {"devDependencies": true}] in my .eslintrc and it got rid of the error.
add a comment |
I added "import/no-extraneous-dependencies" : ["error", {"devDependencies": true}] in my .eslintrc and it got rid of the error.
I added "import/no-extraneous-dependencies" : ["error", {"devDependencies": true}] in my .eslintrc and it got rid of the error.
answered Nov 15 '18 at 0:27
Chen WChen W
122
122
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53310113%2feslintreact-redux-should-be-listed-in-the-projects-dependencyunable-to-res%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Does the ESLint error go away if you restart your server? Also, adding the relevant error messages/code in your question is WAY better than linking to pictures of the code. Please update your question.
– jmargolisvt
Nov 14 '18 at 23:40
No it doesn't. I added "import/no-extraneous-dependencies" : ["error", {"devDependencies": true}] to make it go away.
– Chen W
Nov 15 '18 at 0:25
Well, that's one way to "solve" your problem. ESlint is pointing to something you probably should fix rather than ignore. Can you please add to your question your package.json file?
– jmargolisvt
Nov 15 '18 at 1:34