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

in latest version i having this issued when i updated it #3384

Open
hpsthr opened this issue Oct 10, 2024 · 4 comments
Open

in latest version i having this issued when i updated it #3384

hpsthr opened this issue Oct 10, 2024 · 4 comments

Comments

@hpsthr
Copy link

hpsthr commented Oct 10, 2024

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.

@JustFly1984
Copy link
Owner

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

@andreyfel
Copy link

@JustFly1984 this issue resurfaced in v2.20.4

@JustFly1984
Copy link
Owner

released 2.20.5

@harsh-siddhapura-5557
Copy link

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

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

4 participants