facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.66k stars 26.82k forks source link

can anyone solve it #12514

Open wanisanjay opened 2 years ago

wanisanjay commented 2 years ago

ERROR in ./src/Login.js 8:0-32 Module not found: Error: Package path . is not exported from package F:\React\amazon-clone\node_modules\firebase (see exports field in F:\React\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, F:\React\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.

webpack compiled with 1 error and 1 warning

revelt commented 2 years ago

@wanisanjay Can this be windows-related? I noticed your slashes are left-side...

Try closing this issue here and posting on StackOverflow — you'll get more traction there.

Also, try recreating the issue on stackblitz or other sandboxes, it will help both you and others. It's practically impossible to tell what's going on looking at few lines of error stack message...

Also, if you can, observe the post formatting — use backtick blocks — if you don't bother to format the question nicely, why should strangers bother looking into it?

Do you see?