Long not being pinned is now pulling in ESM version #1241
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
google-gax
is used by the@google-cloud
libraries (eg https://github.com/googleapis/nodejs-compute/blob/main/package.json#L123).google-gax
seems to reference the librarylong
(eg https://github.com/googleapis/gax-nodejs/blob/main/protos/operations.d.ts#L17), but that dependency is not in thepackage.json
.long
changed toESM
in version 5, which causes our builds to currently fail with:It feels like
google-gax
(which isn't ESM) should pinlong
to4.0.0
in order to ensure compatibility with non-esm apps, untilgoogle-gax
itself switches to esm.We've worked around this by:
The text was updated successfully, but these errors were encountered: