react-google-maps-api icon indicating copy to clipboard operation
react-google-maps-api copied to clipboard

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

Open ezezuviriapunchlist opened this issue 1 year ago • 1 comments

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

ezezuviriapunchlist avatar Oct 10 '24 15:10 ezezuviriapunchlist

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

JustFly1984 avatar Oct 10 '24 16:10 JustFly1984