JustFly1984 / react-google-maps-api

React Google Maps API
MIT License
1.76k stars 426 forks source link

Module not found: Error: Can't resolve 'react/jsx-runtime' #3190

Closed nugrohoarfianto closed 1 year ago

nugrohoarfianto commented 1 year ago

Hi, today I got this react/jsx-runtime error when trying to build my react app with @react-google-maps/api

Module not found: Error: Can't resolve 'react/jsx-runtime' in '/Users/nugrohoarfianto/Documents/Projects/Archernine/Commercial/node_modules/@react-google-maps/api/dist'
 @ ./node_modules/@react-google-maps/api/dist/cjs.js 5:17-45
 @ ./app/components/GMapComponent/index.js
 @ ./app/containers/QuotationDetails/index.js
 @ ./app/containers/App/index.js
 @ ./app/app.js
 @ multi ./node_modules/react-app-polyfill/ie11.js ./app/app.js

it never happened before, is there any changes that I should've know? or should I upgrade the version of this library?

Thanks.

Your Environment

os: mac

node --version 14.18.2

react version 16.8.6

webpack version 4.30.0

@babel version 7.4.3

@react-google-maps/api version 2.12.1

How does it behave?

Error when try to npm run build

Module not found: Error: Can't resolve 'react/jsx-runtime' when trying to build react app.

nugrohoarfianto commented 1 year ago

Closing this issue, I fix this by upgrading react version to 17.0.2