react-google-maps-api
react-google-maps-api copied to clipboard
Cannot read properties of undefined, reading "current"
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
Error Message in serve
Package.json
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)
Yeah 2.7.0 still works for us too...
downgrading to 2.7.0 works for me. Not working with verisons above that.
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...
Any news about this issue?