Closed watermelonjam closed 3 weeks ago
Now that I look closer, it's the security loader dependency on @interop/did-web-resolver that starts the fireworks. DidWebResolver.js:11: var whatwgUrl = require('whatwg-url');
. Our application code was converted to use did:web instead of did:key, which re-introduced this issue.
(Looking into this)
I am seeing the same error (same line of same file utils.js:34
at least) in React Native (expo)
@watermelonjam - I vaguely recall you ended up fixing this by making a PR to an upstream lib? Which versions did you end up going with?
@watermelonjam Could you please confirm and let us know if you're still having this issue?
@watermelonjam We've fixed this in our current version, please re-open if still an issue.
Stack trace below; it's pretty opaque since this issue only occurs in production builds. Inspection of the stack trace shows the origination from security-document-loader index.ts:
export { securityLoader, httpClientHandler } from './documentLoader'
The call stack flows down to whatwg-url version 11.0.0 utils.js (which seems to be a generated file). The offending line:
const AsyncIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf(async function* () {}).prototype);
Angular CLI encountered a problem with this statement in their own code a couple of years ago, and there is apparently a solution. Not sure if what's required is a request for a patch on whatwg-url or if there's a possbile workaround in this project.
Stack trace: