Skip to content
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

Module not found: Error: Can't resolve 'react/jsx-runtime' in app/node_modules/@react-google-maps/api/dist #3385

Open
ezezuviriapunchlist opened this issue Oct 10, 2024 · 1 comment

Comments

@ezezuviriapunchlist
Copy link

Please provide an explanation of the issue

when trying to run a npm run build the compilation throws the following error:

Module not found: Error: Can't resolve 'react/jsx-runtime' in '/Users/ezequielzuviria/xseed/rocky/app/node_modules/@react-google-maps/api/dist'
Did you mean 'jsx-runtime.js'?
BREAKING CHANGE: The request 'react/jsx-runtime' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

Your Environment

os: mac
node --version v18.20.4

react version ^17.0.2

@babel-plugin-module-resolver version ^4.1.0

@react-google-maps/api version ^2.2.0

@JustFly1984
Copy link
Owner

@ezezuviriapunchlist Have you tried to update react and/or @react-google-maps/api version

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