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
node_modules/@sinclair/typebox/build/import/value/delta/delta.d.mts:10:37 - error TS2307: Cannot find module 'src/type/object/object.mjs' or its corresponding type declarations.
node_modules/@sinclair/typebox/build/import/value/delta/delta.d.mts:16:37 - error TS2307: Cannot find module 'src/type/object/object.mjs' or its corresponding type declarations.
node_modules/@sinclair/typebox/build/import/value/delta/delta.d.mts:21:35 - error TS2307: Cannot find module 'src/type/union/union-type.mjs' or its corresponding type declarations.
Found 4 errors in the same file, starting at: node_modules/@sinclair/typebox/build/import/value/delta/delta.d.mts:4
tsconfig.json
{
"compilerOptions": {
"lib": ["ESNext", "DOM"],
"moduleResolution": "NodeNext",
"module": "NodeNext",
"target": "ESNext",
"resolveJsonModule": true,
"incremental": true,
// Tells TypeScript to read JS files, as// normally they are ignored as source files"allowJs": true,
"checkJs": true,
"strict": true,
// Generate d.ts files"declaration": true,
// This compiler run should// only output d.ts files"emitDeclarationOnly": true,
// Types should go into this directory.// Removing this would place the .d.ts files// next to the .js files"outDir": "types",
// go to js file when using IDE functions like// "Go to Definition" in VSCode"declarationMap": true
},
"include": ["src/**/*.js"]
}
The text was updated successfully, but these errors were encountered:
This looks like a TypeScript compiler regression between version "^5.3.3" and "^5.4.2" (which is a bit scary). Downgrading the TypeScript compiler to 5.3.3 and building the project generates the correct import paths.
This is a bit of a serious issue, but will spend some time trying to work through a solution on 5.4.2. Failing this, I will publish a new build on 0.32.20 using the TypeScript 5.3.3 compiler.
Have published a patch on 0.32.20 (using a workaround on the TS 5.4.2 compiler). It looks like the issue was isolated to the delta.ts module, but if you still notice any issues elsewhere, feel free to ping on this thread and can re-open and investigate further.
Also, again, thank you so much for reporting! This one is a bit of a major, I may do some further digging on the TS side.
All the best!
S
I have encountered a bug when using version 0.32.19, but version 0.32.15 works without any issues.
tsconfig.json
The text was updated successfully, but these errors were encountered: