Closed Septh closed 1 year ago
Hi @Septh I tried to reproduce but can only when setting skipLibCheck
to false
.
Check out the following minimal project:
package.json:
{
"name": "issue220",
"version": "1.0.0",
"main": "dist/index.js",
"dependencies": {
"acebase": "^1.28.2"
},
"devDependencies": {
"typescript": "^5.0.4"
}
}
tsconfig.json:
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "nodenext",
"rootDir": "./src",
"outDir": "./dist",
"esModuleInterop": false,
"strict": true,
"skipLibCheck": true
}
}
src/index.ts:
import { AceBase } from "acebase";
Running npx tsc
yields no errors. Setting skipLibCheck
to false
will yield the errors you posted.
I will take a look at the errors, because they should not be there in the first place, but it does look like there is something wrong with your configuration. Are you sure tsc
is picking up your tsconfig.json
? You did mention tconfig.json
, which might a typo or misspelling of the actual file?
Thanks. You're right of course, this is a typo from me - I did mean tsconfig.json
. And yes, the errors only show when skipLibCheck
is false
(which is the default anyway).
This minimalist TypeScript code:
ends up with TypeScript reporting 6 errors.
(expand to reveal screenshot, text-only version is below)
![image](https://user-images.githubusercontent.com/11949623/234641960-28935cb0-3e72-4bd7-a1a1-baed93cacea0.png)AceBase
1.28.2
, tested with both TypeScript4.9.5
and5.0.4
(note that I have"skipLibCheck": false
intconfig.json
).