ammarahm-ed / react-native-scoped-storage

MIT License
58 stars 10 forks source link

Not able to run this respository after cloning the same following is the error #3

Closed fsd2 closed 3 years ago

fsd2 commented 3 years ago

Last login: Thu Aug 26 19:30:45 on ttys001 fsd2@Nikhils-MacBook-Pro ~ % /Users/fsd/Downloads/react-native-scoped-storage-master/example/node_modules/react-native/scripts/launchPackager.command ; exit;

                    #######                       
               ################                   
            #########     #########               
        #########             ##########          
    #########        ######        #########      
   ##########################################     
  #####      #####################       #####    
  #####          ##############          #####    
  #####    ###       ######       ###    #####    
  #####    #######            #######    #####    
  #####    ###########    ###########    #####    
  #####    ##########################    #####    
  #####    ##########################    #####    
  #####      ######################     ######    
   ######        #############        #######     
     #########        ####       #########        
          #########          #########            
              ######### #########                 
                   #########                      

                Welcome to Metro!
          Fast - Scalable - Integrated

To reload the app press "r" To open developer menu press "d"

BUNDLE ./index.js

error: Error: While trying to resolve module react-native-scoped-storage from file /Users/fsd/Downloads/react-native-scoped-storage-master/example/App.tsx, the package /Users/fsd/Downloads/react-native-scoped-storage-master/example/node_modules/react-native-scoped-storage/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (/Users/fsd/Downloads/react-native-scoped-storage-master/example/node_modules/react-native-scoped-storage/index.js. Indeed, none of these files exist:

error: Error: While trying to resolve module react-native-scoped-storage from file /Users/fsd/Downloads/react-native-scoped-storage-master/example/App.tsx, the package /Users/fsd/Downloads/react-native-scoped-storage-master/example/node_modules/react-native-scoped-storage/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (/Users/fsd/Downloads/react-native-scoped-storage-master/example/node_modules/react-native-scoped-storage/index.js. Indeed, none of these files exist:

ammarahm-ed commented 3 years ago

It points to a index.tsx file which does exist. not sure why you are getting this error. can you try again?