Closed francescocretti closed 10 months ago
Can you elaborate a bit on your environment? Which bundler or build-steps are you using, how are they configured? Also maybe add the full source-file.
It seems strange that you are loading the .modern.js
version, but apparently from a commonJS context (which should use the .umd.js
).
Hi @usefulthink thanks for your reply.
I'm working on a pre-existent React app made a couple years ago with CreateReactApp.
So it uses webpack under the hood and all the bundling is managed through react-scripts
and I don't have access to the source code unless I eject from CRA (I really don't want to do it :) ).
I'm trying the road to upgrade to react-scripts v5
, that seems to be working.
I have other bundling issues now, but I don't think they have anything to do with this package.
I'll keep this issue posted as soon I figured a working solution!
That's really valuable for us to know, thanks!
Hi @usefulthink, I can confirm that with react-scripts
v5
it works!
Thanks for the info! I think as create-react-app v5 has been published 2 years ago, we can ignore this for now.
Description
Hi everyone, I installed the package in my current project and tried to replicate the basic example. At build-time I get the following error:
I could be a problem coming from my environment but I wanted to know if anyone has ever encountered something similar. Thanks in advance.
Steps to Reproduce
vis.gl/react-google-maps
Environment
"@vis.gl/react-google-maps": "^0.4.1"
Dependencies versions (from
package.json
):Logs
No response