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

Cannot read properties of undefined, reading "current"

Open website-sevdesk opened this issue 2 years ago • 2 comments

Hey, we have a Bug with the package. Can you help us? thank you very much

Node v16 and v17 Best regards Marcel Wiskow

Error Message in Browser Bildschirmfoto 2022-06-03 um 14 40 45

Error Message in serve Bildschirmfoto 2022-06-03 um 14 40 58

Package.json Bildschirmfoto 2022-06-03 um 14 40 58

website-sevdesk avatar Jun 03 '22 12:06 website-sevdesk

I can confirm having the same issue. 2.7.0 seems fine, but 2.8.0 onwards is broken. I'm running Preact. I've tried updating to the latest (currently 10.7.3) Preact, but issue still persist. ReactCurrentOwner seems undefined in jsxDEV

TypeError: Cannot read properties of undefined (reading 'current') at jsxDEV (esm.js:969:1) at jsxWithValidation (esm.js:1264:1) at Object.jsxWithValidationDynamic [as jsx] (esm.js:1318:1) at ./node_modules/@react-google-maps/api/dist/esm.js (esm.js:2044:1) at webpack_require (bootstrap:19:1)

metal03326 avatar Jun 10 '22 05:06 metal03326

Yeah 2.7.0 still works for us too...

website-sevdesk avatar Jun 13 '22 12:06 website-sevdesk

downgrading to 2.7.0 works for me. Not working with verisons above that.

pavankumar-meesho avatar Nov 16 '22 05:11 pavankumar-meesho

I just did full stack update of my app and issue still persists even with latest Preact (10.11.3).

Interestingly, looking at version history you can see 2.7.0 is still in top 3 of weekly downloads. Are all Preact users stuck with it?

In general 2.7.0 works fine for me, but there is this nagging google.maps.event.addDomListener() is deprecated that got fixed in later versions...

metal03326 avatar Dec 01 '22 08:12 metal03326

Any news about this issue?

kundukundu avatar Jan 17 '23 10:01 kundukundu