You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@edge-runtime/types depends on types like Request, Response, File, etc existing in the global scope, but it doesn't import them from anywhere. @types/node and lib.webworker.d.ts conflict with @edge-runtime/types, and lib.dom.d.ts works but contains many definitions that will not be available at runtime. what configuration are users expected to use?
node_modules/.pnpm/@[email protected]/node_modules/@edge-runtime/primitives/types/crypto.d.ts:1:23 - error TS2304: Cannot find name 'Crypto'.
1 declare const crypto: Crypto
~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@edge-runtime/primitives/types/crypto.d.ts:3:41 - error TS2552: Cannot find name 'Crypto'. Did you mean 'crypto'?
3 declare const CryptoConstructor: typeof Crypto
~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@edge-runtime/primitives/types/crypto.d.ts:1:15
1 declare const crypto: Crypto
~~~~~~
'crypto' is declared here.
node_modules/.pnpm/@[email protected]/node_modules/@edge-runtime/primitives/types/crypto.d.ts:4:44 - error TS2552: Cannot find name 'CryptoKey'. Did you mean 'crypto'?
4 declare const CryptoKeyConstructor: typeof CryptoKey
~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@edge-runtime/primitives/types/crypto.d.ts:1:15
1 declare const crypto: Crypto
~~~~~~
'crypto' is declared here.
node_modules/.pnpm/@[email protected]/node_modules/@edge-runtime/primitives/types/crypto.d.ts:5:47 - error TS2304: Cannot find name 'SubtleCrypto'.
5 declare const SubtleCryptoConstructor: typeof SubtleCrypto
~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@edge-runtime/primitives/types/fetch.d.ts:3:12 - error TS2416: Property 'duplex' in type 'Request' is not assignable to the same property in base type 'Request'.
Type 'string' is not assignable to type '"half"'.
3 readonly duplex: string
~~~~~~
Found 5 errors in 2 files.
Errors Files
4 node_modules/.pnpm/@[email protected]/node_modules/@edge-runtime/primitives/types/crypto.d.ts:1
1 node_modules/.pnpm/@[email protected]/node_modules/@edge-runtime/primitives/types/fetch.d.ts:3
The text was updated successfully, but these errors were encountered:
Questions & Answers
@edge-runtime/types depends on types like Request, Response, File, etc existing in the global scope, but it doesn't import them from anywhere. @types/node and lib.webworker.d.ts conflict with @edge-runtime/types, and lib.dom.d.ts works but contains many definitions that will not be available at runtime. what configuration are users expected to use?
tsc output with no dom/webworker/node/etc types
tsconfig:
tsc output with webworker types
tsconfig:
tsc output with node types
tsconfig:
The text was updated successfully, but these errors were encountered: