We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using tsc to compile using node the following error occurs;
tsc
node_modules/jose/dist/types/jwks/remote.d.ts:7:49 - error TS2304: Cannot find name 'URL'. 7 export declare function createRemoteJWKSet(url: URL, options?: RemoteJWKSetOptions): GetKeyFunction<JWSHeaderParameters, FlattenedJWSInput>;
I believe jwks/remote.ts requires;
jwks/remote.ts
import { URL } from 'url';
v4.1
Node.js
v14.18.1
-
The text was updated successfully, but these errors were encountered:
Please provide the code/tiny project to reproduce. URL is a global in all supported Node.js versions.
Sorry, something went wrong.
This needs to be solved upstream in DefinitelyTyped DefinitelyTyped/DefinitelyTyped#34960
For the time being you can solve by adding dom to the libs in tsconfig.json.
dom
I'll label this as a bug and fix it, nevertheless it's a workaround for an issue in Node.js types from @types/node.
bug
7ed731c
No branches or pull requests
What happened?
When using
tsc
to compile using node the following error occurs;I believe
jwks/remote.ts
requires;Version
v4.1
Runtime
Node.js
Runtime Details
v14.18.1
Code to reproduce
-
The text was updated successfully, but these errors were encountered: