React-Native not building application, showing module not found error












0















When I'm trying to run react-native run-android I'm getting this error.



App.js code




import React, {Component} from 'react'; import {Platform, StyleSheet,
Text, View} from 'react-native'; import { createStackNavigation } from
'react-navigation'; import Splash from './components/splash/splash';
import Login from './components/login/login';



const App = createStackNavigation({
Login: {screen: Login},
Spash: {screen: Splash} },{
initialRouteName: "Splash",
headerMode: "none", });



export default App




Unable to resolve module ./components/splash/splash from /home/subrata/puplr_mobile_app/puplr/App.js: The module ./components/splash/splash could not be found from /home/subrata/puplr_mobile_app/puplr/App.js. Indeed, none of these files exist:
* /home/subrata/puplr_mobile_app/puplr/components/splash/splash(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
* /home/subrata/puplr_mobile_app/puplr/components/splash/splash/index(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
Error: Unable to resolve module ./components/splash/splash from /home/subrata/puplr_mobile_app/puplr/App.js: The module ./components/splash/splash could not be found from /home/subrata/puplr_mobile_app/puplr/App.js. Indeed, none of these files exist:
* /home/subrata/puplr_mobile_app/puplr/components/splash/splash(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
* /home/subrata/puplr_mobile_app/puplr/components/splash/splash/index(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
at ModuleResolver.resolveDependency (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:120:15)
at ResolutionRequest.resolveDependency (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:49:18)
at DependencyGraph.resolveDependency (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/node-haste/DependencyGraph.js:218:16)
at Object.resolve (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/lib/transformHelpers.js:141:30)
at dependencies.map.result (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/DeltaBundler/traverseDependencies.js:373:31)
at Array.map ()
at resolveDependencies (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/DeltaBundler/traverseDependencies.js:369:18)
at /home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/DeltaBundler/traverseDependencies.js:188:33
at Generator.next ()
at step (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/DeltaBundler/traverseDependencies.js:298:30)










share|improve this question



























    0















    When I'm trying to run react-native run-android I'm getting this error.



    App.js code




    import React, {Component} from 'react'; import {Platform, StyleSheet,
    Text, View} from 'react-native'; import { createStackNavigation } from
    'react-navigation'; import Splash from './components/splash/splash';
    import Login from './components/login/login';



    const App = createStackNavigation({
    Login: {screen: Login},
    Spash: {screen: Splash} },{
    initialRouteName: "Splash",
    headerMode: "none", });



    export default App




    Unable to resolve module ./components/splash/splash from /home/subrata/puplr_mobile_app/puplr/App.js: The module ./components/splash/splash could not be found from /home/subrata/puplr_mobile_app/puplr/App.js. Indeed, none of these files exist:
    * /home/subrata/puplr_mobile_app/puplr/components/splash/splash(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
    * /home/subrata/puplr_mobile_app/puplr/components/splash/splash/index(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
    Error: Unable to resolve module ./components/splash/splash from /home/subrata/puplr_mobile_app/puplr/App.js: The module ./components/splash/splash could not be found from /home/subrata/puplr_mobile_app/puplr/App.js. Indeed, none of these files exist:
    * /home/subrata/puplr_mobile_app/puplr/components/splash/splash(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
    * /home/subrata/puplr_mobile_app/puplr/components/splash/splash/index(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
    at ModuleResolver.resolveDependency (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:120:15)
    at ResolutionRequest.resolveDependency (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:49:18)
    at DependencyGraph.resolveDependency (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/node-haste/DependencyGraph.js:218:16)
    at Object.resolve (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/lib/transformHelpers.js:141:30)
    at dependencies.map.result (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/DeltaBundler/traverseDependencies.js:373:31)
    at Array.map ()
    at resolveDependencies (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/DeltaBundler/traverseDependencies.js:369:18)
    at /home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/DeltaBundler/traverseDependencies.js:188:33
    at Generator.next ()
    at step (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/DeltaBundler/traverseDependencies.js:298:30)










    share|improve this question

























      0












      0








      0








      When I'm trying to run react-native run-android I'm getting this error.



      App.js code




      import React, {Component} from 'react'; import {Platform, StyleSheet,
      Text, View} from 'react-native'; import { createStackNavigation } from
      'react-navigation'; import Splash from './components/splash/splash';
      import Login from './components/login/login';



      const App = createStackNavigation({
      Login: {screen: Login},
      Spash: {screen: Splash} },{
      initialRouteName: "Splash",
      headerMode: "none", });



      export default App




      Unable to resolve module ./components/splash/splash from /home/subrata/puplr_mobile_app/puplr/App.js: The module ./components/splash/splash could not be found from /home/subrata/puplr_mobile_app/puplr/App.js. Indeed, none of these files exist:
      * /home/subrata/puplr_mobile_app/puplr/components/splash/splash(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
      * /home/subrata/puplr_mobile_app/puplr/components/splash/splash/index(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
      Error: Unable to resolve module ./components/splash/splash from /home/subrata/puplr_mobile_app/puplr/App.js: The module ./components/splash/splash could not be found from /home/subrata/puplr_mobile_app/puplr/App.js. Indeed, none of these files exist:
      * /home/subrata/puplr_mobile_app/puplr/components/splash/splash(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
      * /home/subrata/puplr_mobile_app/puplr/components/splash/splash/index(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
      at ModuleResolver.resolveDependency (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:120:15)
      at ResolutionRequest.resolveDependency (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:49:18)
      at DependencyGraph.resolveDependency (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/node-haste/DependencyGraph.js:218:16)
      at Object.resolve (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/lib/transformHelpers.js:141:30)
      at dependencies.map.result (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/DeltaBundler/traverseDependencies.js:373:31)
      at Array.map ()
      at resolveDependencies (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/DeltaBundler/traverseDependencies.js:369:18)
      at /home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/DeltaBundler/traverseDependencies.js:188:33
      at Generator.next ()
      at step (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/DeltaBundler/traverseDependencies.js:298:30)










      share|improve this question














      When I'm trying to run react-native run-android I'm getting this error.



      App.js code




      import React, {Component} from 'react'; import {Platform, StyleSheet,
      Text, View} from 'react-native'; import { createStackNavigation } from
      'react-navigation'; import Splash from './components/splash/splash';
      import Login from './components/login/login';



      const App = createStackNavigation({
      Login: {screen: Login},
      Spash: {screen: Splash} },{
      initialRouteName: "Splash",
      headerMode: "none", });



      export default App




      Unable to resolve module ./components/splash/splash from /home/subrata/puplr_mobile_app/puplr/App.js: The module ./components/splash/splash could not be found from /home/subrata/puplr_mobile_app/puplr/App.js. Indeed, none of these files exist:
      * /home/subrata/puplr_mobile_app/puplr/components/splash/splash(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
      * /home/subrata/puplr_mobile_app/puplr/components/splash/splash/index(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
      Error: Unable to resolve module ./components/splash/splash from /home/subrata/puplr_mobile_app/puplr/App.js: The module ./components/splash/splash could not be found from /home/subrata/puplr_mobile_app/puplr/App.js. Indeed, none of these files exist:
      * /home/subrata/puplr_mobile_app/puplr/components/splash/splash(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
      * /home/subrata/puplr_mobile_app/puplr/components/splash/splash/index(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
      at ModuleResolver.resolveDependency (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:120:15)
      at ResolutionRequest.resolveDependency (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:49:18)
      at DependencyGraph.resolveDependency (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/node-haste/DependencyGraph.js:218:16)
      at Object.resolve (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/lib/transformHelpers.js:141:30)
      at dependencies.map.result (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/DeltaBundler/traverseDependencies.js:373:31)
      at Array.map ()
      at resolveDependencies (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/DeltaBundler/traverseDependencies.js:369:18)
      at /home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/DeltaBundler/traverseDependencies.js:188:33
      at Generator.next ()
      at step (/home/subrata/puplr_mobile_app/puplr/node_modules/metro/src/DeltaBundler/traverseDependencies.js:298:30)







      react-native






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 24 '18 at 19:26









      Subrata BanerjeeSubrata Banerjee

      5211




      5211
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Sometimes you may need to restart the Metro bundler for it to find a newly created file.



          If it isn't your issue, you have to make sure that you do have a splash.js file in your /home/subrata/puplr_mobile_app/puplr/components/splash folder.






          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%2f53461646%2freact-native-not-building-application-showing-module-not-found-error%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Sometimes you may need to restart the Metro bundler for it to find a newly created file.



            If it isn't your issue, you have to make sure that you do have a splash.js file in your /home/subrata/puplr_mobile_app/puplr/components/splash folder.






            share|improve this answer




























              0














              Sometimes you may need to restart the Metro bundler for it to find a newly created file.



              If it isn't your issue, you have to make sure that you do have a splash.js file in your /home/subrata/puplr_mobile_app/puplr/components/splash folder.






              share|improve this answer


























                0












                0








                0







                Sometimes you may need to restart the Metro bundler for it to find a newly created file.



                If it isn't your issue, you have to make sure that you do have a splash.js file in your /home/subrata/puplr_mobile_app/puplr/components/splash folder.






                share|improve this answer













                Sometimes you may need to restart the Metro bundler for it to find a newly created file.



                If it isn't your issue, you have to make sure that you do have a splash.js file in your /home/subrata/puplr_mobile_app/puplr/components/splash folder.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 24 '18 at 22:27









                ArnaudArnaud

                249210




                249210
































                    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%2f53461646%2freact-native-not-building-application-showing-module-not-found-error%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

                    Costa Masnaga

                    Fotorealismo

                    Sidney Franklin