Skip to content

ERROR in ./src/firebase.js - npm start #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
harshit82 opened this issue May 16, 2023 · 6 comments
Open

ERROR in ./src/firebase.js - npm start #65

harshit82 opened this issue May 16, 2023 · 6 comments

Comments

@harshit82
Copy link

I was trying to run the project on my local system using npm start in developer mode, as stated in the README.md and encountered this error:

ERROR in ./src/firebase.js 3:0-32
Module not found: Error: Package path . is not exported from package D:\Code\react-challenge-amazon-clone\node_modules\firebase (see exports field in D:\Code\react-challenge-amazon-clone\node_modules\firebase\package.json)
Did you mean './firebase'?
Requests that should resolve in the current directory need to start with './'.
Requests that start with a name are treated as module requests and resolve within module directories (node_modules, D:\Code\react-challenge-amazon-clone\node_modules).
If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.

The fix which I could find is changing the import statements of the src/firebase.js file. I have open a pull request with the changes please review and merge.

@sohammuthal20
Copy link

same bro did you find the answer? if anybody knows plz respond

@harshit82
Copy link
Author

harshit82 commented Oct 4, 2023 via email

@sohammuthal20
Copy link

Harshit bro are you able to run the code of cleverprogrammers for amazon clone using js react and firebase? if yes please tell me how did you do so!?? please

@harshit82
Copy link
Author

harshit82 commented Oct 6, 2023 via email

@sohammuthal20
Copy link

Bro can you provide me ur contact details or something coz if u have the exact same project in working condition I want it and ask you how to run the code directly

@harshit82
Copy link
Author

harshit82 commented Oct 8, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants