-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
When using these packages in a modern TypeScript project (NestJS setup), several compilation issues arise due to:
Incorrect or missing TypeScript typings (null assigned to string | undefined)
Use of import.meta.url and top-level await without appropriate module target
Array typing issues (number[] passed where never[] is inferred)
Specify that error is coming for node-cot there (for node-tak only)
❗️Errors Encountered
credentials.ts:46:13 - error TS2322: Type 'null' is not assignable to type 'string | undefined'.
credentials.ts:47:13 - error TS2322: Type 'null' is not assignable to type 'string | undefined'.
cot.ts:43:56 - error TS1343: The 'import.meta' meta-property is only allowed when the '--module' option is ...
cot.ts:44:21 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' and 'target' ...
cot.ts:608:34 - error TS2345: Argument of type 'number[]' is not assignable to parameter of type 'never'.
cot.ts:681:38 - error TS2345: Argument of type 'number[]' is not assignable to parameter of type 'never'.
cot-types.ts:83:85 - error TS1343: The 'import.meta' meta-property is only allowed when the '--module'
My tsconfig.json
{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "ES2023",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": true,
"forceConsistentCasingInFileNames": true,
"noImplicitAny": false,
"strictBindCallApply": false,
"noFallthroughCasesInSwitch": false
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels