-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
pnp: esbuild@0.15.2
unable to resolve range dependencies
#2464
Comments
Do you have a clear reproduction? Esbuild doesn't differentiate between ranges, so this can't be the problem. |
Link to the repo I made for a quick reproduction: |
I get this when I run that:
There are no errors. What's the difference between what I'm doing and what you're doing? |
Hmm, the only difference can be the node version and os. I'm using node 16.16.0 in windows 11. |
Here is a more detailed output of the errors Error: Build failed with 21 errors:
.yarn/cache/d3-array-npm-3.2.0-c3a38fe288-e236f6670b.zip/node_modules/d3-array/src/difference.js:1:24: ERROR: Could not resolve "internmap"
.yarn/cache/d3-array-npm-3.2.0-c3a38fe288-e236f6670b.zip/node_modules/d3-array/src/disjoint.js:1:24: ERROR: Could not resolve "internmap"
.yarn/cache/d3-array-npm-3.2.0-c3a38fe288-e236f6670b.zip/node_modules/d3-array/src/group.js:1:24: ERROR: Could not resolve "internmap"
.yarn/cache/d3-array-npm-3.2.0-c3a38fe288-e236f6670b.zip/node_modules/d3-array/src/index.js:57:35: ERROR: Could not resolve "internmap"
.yarn/cache/d3-array-npm-3.2.0-c3a38fe288-e236f6670b.zip/node_modules/d3-array/src/intersection.js:1:24: ERROR: Could not resolve "internmap"
...
at failureErrorWithLog (C:\Projects\test-d3-esbuild-yarn-pnp\.yarn\unplugged\esbuild-npm-0.15.2-e8a5300715\node_modules\esbuild\lib\main.js:1624:15)
at C:\Projects\test-d3-esbuild-yarn-pnp\.yarn\unplugged\esbuild-npm-0.15.2-e8a5300715\node_modules\esbuild\lib\main.js:1266:28
at runOnEndCallbacks (C:\Projects\test-d3-esbuild-yarn-pnp\.yarn\unplugged\esbuild-npm-0.15.2-e8a5300715\node_modules\esbuild\lib\main.js:1046:63)
at buildResponseToResult (C:\Projects\test-d3-esbuild-yarn-pnp\.yarn\unplugged\esbuild-npm-0.15.2-e8a5300715\node_modules\esbuild\lib\main.js:1264:7)
at C:\Projects\test-d3-esbuild-yarn-pnp\.yarn\unplugged\esbuild-npm-0.15.2-e8a5300715\node_modules\esbuild\lib\main.js:1377:14
at C:\Projects\test-d3-esbuild-yarn-pnp\.yarn\unplugged\esbuild-npm-0.15.2-e8a5300715\node_modules\esbuild\lib\main.js:678:9
at handleIncomingPacket (C:\Projects\test-d3-esbuild-yarn-pnp\.yarn\unplugged\esbuild-npm-0.15.2-e8a5300715\node_modules\esbuild\lib\main.js:775:9)
at Socket.readFromStdout (C:\Projects\test-d3-esbuild-yarn-pnp\.yarn\unplugged\esbuild-npm-0.15.2-e8a5300715\node_modules\esbuild\lib\main.js:644:7)
at Socket.emit (node:events:527:28)
at addChunk (node:internal/streams/readable:315:12) |
Ah. It's a Windows-specific issue. Closing as a duplicate of #2462. |
D3 packages use ranges in their dependencies. Example: https://github.com/d3/d3-scale/blob/main/package.json
When I use this d3-scale, yarn installs the dependencies and sets the latest version in that range as the resolution.
One of the dependencies of d3-scale is d3-time.
Yarn.lock:
Esbuild can't resolve d3-time
The text was updated successfully, but these errors were encountered: