-
Notifications
You must be signed in to change notification settings - Fork 685
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels