[eslint]'react-redux' should be listed in the project's dependency+unable to resolve path to module...












0















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?










share|improve this question























  • 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
















0















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?










share|improve this question























  • 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














0












0








0


1






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?










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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



















  • 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












2 Answers
2






active

oldest

votes


















0















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






share|improve this answer
























  • I think that's where I messed up!

    – Chen W
    Nov 15 '18 at 19:01



















0














I added "import/no-extraneous-dependencies" : ["error", {"devDependencies": true}] in my .eslintrc and it got rid of the error.






share|improve this answer























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    0















    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






    share|improve this answer
























    • I think that's where I messed up!

      – Chen W
      Nov 15 '18 at 19:01
















    0















    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






    share|improve this answer
























    • I think that's where I messed up!

      – Chen W
      Nov 15 '18 at 19:01














    0












    0








    0








    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






    share|improve this answer














    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







    share|improve this answer












    share|improve this answer



    share|improve this answer










    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



















    • 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













    0














    I added "import/no-extraneous-dependencies" : ["error", {"devDependencies": true}] in my .eslintrc and it got rid of the error.






    share|improve this answer




























      0














      I added "import/no-extraneous-dependencies" : ["error", {"devDependencies": true}] in my .eslintrc and it got rid of the error.






      share|improve this answer


























        0












        0








        0







        I added "import/no-extraneous-dependencies" : ["error", {"devDependencies": true}] in my .eslintrc and it got rid of the error.






        share|improve this answer













        I added "import/no-extraneous-dependencies" : ["error", {"devDependencies": true}] in my .eslintrc and it got rid of the error.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 15 '18 at 0:27









        Chen WChen W

        122




        122






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            List item for chat from Array inside array React Native

            Thiostrepton

            Caerphilly