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

in latest version i having this issued when i updated it

Open hpsthr opened this issue 1 year ago • 4 comments

ReferenceError: require is not defined in ES module scope, you can use import instead This file is being treated as an ES module because it has a '.js' file extension and 'node_modules/@react-google-maps/api/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension

this is the versions of my nextjs

"@react-google-maps/api": "2.19.3", changed to "^2.20.1" ( got this error and restore it to old version and problem is resolve) "next": "14.2.9", "react": "^18", "react-dom": "^18", "react-tooltip": "^5.28.0",

i am posting this first time. So don't know the rules. just want to remind you about there is problem in new version.

hpsthr avatar Oct 10 '24 11:10 hpsthr

@hpsthr Totally forgot nextjs is failing on that. Please try 2.20.2 - released a minute ago.

JustFly1984 avatar Oct 10 '24 17:10 JustFly1984

@JustFly1984 this issue resurfaced in v2.20.4

andreyfel avatar Dec 24 '24 12:12 andreyfel

released 2.20.5

JustFly1984 avatar Dec 24 '24 18:12 JustFly1984

React-Google-Maps issue will be react-dom is not working please suggest me and guide my project...

harsh-siddhapura-5557 avatar Dec 27 '24 07:12 harsh-siddhapura-5557