dynamodb-toolbox
dynamodb-toolbox copied to clipboard
Compile error - Type alias 'ParsedEntity' circularly references itself.
- Typescript: 4.7.4
- DynamoDB Toolbox: 0.4.2
node_modules/dynamodb-toolbox/dist/lib/parseEntity.d.ts:24:21 - error TS2456: Type alias 'ParsedEntity' circularly references itself.
24 export declare type ParsedEntity = ReturnType<typeof parseEntity>;
~~~~~~~~~~~~
Found 1 error in node_modules/dynamodb-toolbox/dist/lib/parseEntity.d.ts:24
When downgrading to DynamoDB Toolbox 0.3.5
again, all is 👍!
I tried the latest version again, and this still persists.
- DynamoDB Toolbox: 0.4.3
- macos: 10.15.7
- TypeScript: 4.7.4
- node: 16.16.0
- npm: 8.11.0
Do note that runtime the library does work when I massage my data modelling (access patterns) with command line scripts invoking TS
files via ts-node
.
The compile error kicks in when I run tsc
for my project.
My tsconfig.js
as follows:
{
"compilerOptions": {
"experimentalDecorators": true,
"lib": ["es2017"],
"moduleResolution": "node",
"noImplicitAny": true,
"strictNullChecks": true,
"removeComments": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"sourceMap": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"target": "es2017",
"module": "commonjs",
"outDir": "dist",
"typeRoots": [ "./custom-types", "./node_modules/@types"]
},
"exclude": [
"node_modules"
]
}
@ThomasAribart, will you have time to look into this?
Still getting this with
$ tsc -v && yarn -v && node -v
Version 4.5.5
1.22.19
v16.15.1
Still getting this with
$ tsc -v && yarn -v && node -v Version 4.5.5 1.22.19 v16.15.1
Hey, looked into it and it seems the fix for this wasn't released yet, we're releasing the next version today hopefully
Yay, this is now fixed with the latest 0.5.0
release 🍾
Yay, this is now fixed with the latest
0.5.0
release 🍾
Wooho!😎