Closed
Description
- Review the documentation: https://docs.clerk.dev/
- Search for existing issues: https://github.com/clerkinc/javascript/issues
- Go through package changelog files.
- Provide the Frontend API key from your application dashboard.
Package + Version
-
@clerk/clerk-js
-
@clerk/clerk-react
-
@clerk/nextjs
-
@clerk/remix
-
@clerk/clerk-expo
-
@clerk/backend-core
-
@clerk/clerk-sdk-node
-
@clerk/edge
- other:
Version:
@clerk/clerk-sdk-node: ^3.2.2
@clerk/backend-core: ^1.1.0
@clerk/types: ^2.2.0
Browser/OS
OSX 12.3
Nodejs 16.14.2
Typescript 4.6.3
Description
My backend project refuses to compile correctly.
tsconfig.json:
{
"compilerOptions": {
"lib": ["es2020", "dom"],
"target": "es2020",
"module": "CommonJS",
"sourceMap": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"baseUrl": "./src",
"outDir": "./build",
"forceConsistentCasingInFileNames": true,
"strict": true,
"esModuleInterop": true,
"strictNullChecks": true
},
"files": ["..."],
"include": ["src/**/*.ts"]
}
Compilation errors :
node_modules/@clerk/backend-core/dist/cjs/api/resources/Props.d.ts(1,23): error TS2688: Cannot find type definition file for 'web'.
node_modules/@clerk/backend-core/dist/cjs/Base.d.ts(1,23): error TS2688: Cannot find type definition file for 'web'.
node_modules/@clerk/backend-core/dist/cjs/util/types.d.ts(1,23): error TS2688: Cannot find type definition file for 'web'.
It comes from /// <reference types="web" />
What is weird is that I do not have this issue in my nextjs frontend, with the same @clerk/backend-core version (same typescript, nodejs and @clerk/clerk-sdk-node).
But even in my nextjs project: when I open Props.d.ts
or Base.d.ts
or types.d.ts
: it says Cannot find type definition file for 'web'.ts(2688)
. But it compiles.
I tried several tsconfig changes. Nothing is working.
Any idea ?
Thanks.
Metadata
Metadata
Assignees
Labels
No labels