-
Notifications
You must be signed in to change notification settings - Fork 10
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
1.0.33 release requires core-js
but states no dependency
#528
Comments
If you would like to upvote the priority of this issue, please comment below or react on the original post above with 👍 so we can see what is popular when we triage.@iamcdonald Thank you for opening this issue. 🙏
This is an automated message, feel free to ignore. |
core-js is actually listed on the Cannot find module 'core-js/modules/es.string.replace.js' from 'node_modules/@googlemaps/url-signature/dist/index.umd.js' const { Client } = require("@googlemaps/google-maps-services-js");
|
Same issue here, using the |
Same issue here, we fixed it temporarily using:
|
have the same issue here
|
same problem here |
Same problem for me |
Same issue for us:
|
Same issue for us |
1 similar comment
Same issue for us |
same issue here |
for npm users the equivalent is
|
For the ones that are using npm versions older than 8.3 that doesn't have support for overrides, you can use the package |
I added the resolutions to my package.json but still seeing an issue getting this to work with yarn. |
Same issue for us also |
This is also happening for us. Using npm overrides also didn’t solve the issue even though we use npm 9. Has anyone successfully worked around this? |
You can just add core-js to your project |
For those who were unable to fix this by installing // package.json
{
"dependencies": {
"core-js": "^3.36.1",
}
} // node_entry.ts
require('core-js'); |
using npm overrides works for me. you could check that
|
Same here, how this happened to me is that my project uses "@googlemaps/google-maps-services-js@npm:3.3.34" which has a liberal dependency to "@googlemaps/url-signature": ^1.0.4 The recent version bump killed the install. @jpoehnelt |
So the issue here appears to be one of an incorrect polyfill in the This was introduced by the babel update that happened between releases 1.0.32 and 1.0.33, which cascaded through to cause a caniuse update as well. Thankfully, it is fixed with the most recent caniuse release, so I was able to fix the issue by updating that dependency to latest in the lockfile. The PR to do so is here: #548 Unfortunately, this update needs to happen in this repository because the incorrect polyfill is baked in at build-time, so the only fix downstream until Google releases an update is to continue using |
I just stumbled upon this problem after updating packages. I temporarily fixed this using the suggested npm overrides, but it would be nice if a new version of @googlemaps/url-signature was built and released now that the upstream problem is solved. |
This issue appears to still occur in my environment with the 1.0.35 release:
From package-lock.json:
|
@wangela hey please can you ping someone of yours to dump a new version 🙏 |
Please somebody release a new version already. Overrides do not work correctly in monorepos/with npm workspaces. 🙏 |
+1 |
FYI - I'm no longer seeing the error in my environment as of the 1.0.36 release. I now have no overrides or core-js in my package.json. I attempted to repro in Node v21.2.0 (where I most recently confirmed I was still seeing it) and v22.4.1 (npm v10.8.1), my current environment. I'm still tying to track down the specific change that may have resolved this for me, but I'm currently lost in the details of the latest babel environment updates, and I got a little excited, so figured I'd jump over here and add a comment here real quick before digging in further. Can anyone confirm this is resolved and/or have details of what theoretically resolved it? Fingers crossed (and thanks!) |
Appears to be working locally for me too now. Checking out the diff on 1.0.36, it looks like the updates to babel also updated a dependency chain through browserlist that caused a minor version update to the Happy it's fixed, though a little disappointed that it happened incidentally like this and that no one at Google cared to respond or help for the past 3 months while this has been broken... |
We're currently using
@googlemaps/google-maps-services-js
which has the following dependency on this moduleUnfortunately it would appear that changes to the build process for this module have manifested in the latest release (
1.0.33
)dist/index.umd.js
requiring imports fromcore-js
.We're currently working around the issue by using npm overrides but I was wondering if it was intentional that
core-js
hadn't been added todependencies
orpeerDependencies
for this module.The text was updated successfully, but these errors were encountered: