-
Notifications
You must be signed in to change notification settings - Fork 45
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
[BUG] Could not resolve "#node-web-compat" #88
Comments
Indeed a variant (or duplicate) of #66
"imports": {
"#node-web-compat": {
"browser": "./node-web-compat-web.js",
"import": "./node-web-compat-node.js"
}
} The culprit must be the specific interplay of yarn with esbuild, concerning subpath imports. My stack trace shows:
I recommend to open an issue with esbuild. We can keep this issue here open for now, but it will need convincing that this is an issue in our library. |
reported to esbuild as evanw/esbuild#2545, will keep you updated if it affects this package. |
Found out it is a missing feature in yarn yarnpkg/berry#3843. I'll close this as I expect it to work once that is implemented. If someone else lands here: Go and 👍 that issue so we can get this working |
yarnpkg/berry#3843 was fixed yesterday. The fix is available in
... according to yarnpkg/berry#4895 See yarnpkg/berry#3591 for v4 breaking changes. I've seen two mentions of people stumbling over |
Update: the fix that adds support for the |
Describe the bug
I'm facing another version of #66 in combination with yarn berry and esbuild.
Build fails with
Workaround is to use a different linker mode in yarn, e.g. pnpm
Versions
Which version of
aws-jwt-verify
are you using? ^3.1.0Are you using the library in Node.js or in the Web browser? Node.js
If Node.js, which version of Node.js are you using? (Should be at least 14) 14
If Web browser, which web browser and which version of it are you using?If using TypeScript, which version of TypeScript are you using? (Should be at least 4) ^4.8.3
To Reproduce
Reproducer can be found here.
Note: I'm not sure where to report this issue, could as well be in yarn or esbuild. I'm just starting here, hoping you can point me further.
The text was updated successfully, but these errors were encountered: