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
Two errors in a fresh angular 15.0.1/aws-amplify 5.0.4 project:
Error: node_modules/type-fest/ts41/get.d.ts:93:37 - error TS2344: Type 'BaseType' does not satisfy the constraint 'Record<string | number, any>'.
93 : Key extends keyof WithStringKeys<BaseType>
~~~~~~~~
node_modules/type-fest/ts41/get.d.ts:79:17
79 type PropertyOf<BaseType, Key extends string> =
~~~~~~~~
This type parameter might need an `extends Record<string | number, any>` constraint.
Error: node_modules/type-fest/ts41/get.d.ts:94:19 - error TS2344: Type 'BaseType' does not satisfy the constraint 'Record<string | number, any>'.
94 ? WithStringKeys<BaseType>[Key]
~~~~~~~~
node_modules/type-fest/ts41/get.d.ts:79:17
79 type PropertyOf<BaseType, Key extends string> =
~~~~~~~~
This type parameter might need an `extends Record<string | number, any>` constraint.
Reproduce this issue:
npm install -g @angular/cli@15.0.1
npm install -g @aws-amplify/cli@10.5.1
amplify configure
ng new testing-type-fest
cd testing-type-fest/
amplify init
npm install --save aws-amplify @aws-amplify/ui-angular
amplify add auth
ng build
Maybe the amplify statements are optional, please try.
Sections from the package-log.json (versions and dependants):
Is there a workaround (e.g. switching off the error in tsconfig.json?)
YES:, but only until it is fixed, as a lot of type errors will be suppressed
"compilerOptions": {
"skipLibCheck": true,
where is that fixed, stacktrack-parser and/or ansi-escapes can fix this?
The text was updated successfully, but these errors were encountered:
myonara
changed the title
0.21.3: TS2344: Type 'BaseType' does not satisfy the constraint 'Record<string | number, any>'.
0.7.1 or 0.21.3: TS2344: Type 'BaseType' does not satisfy the constraint 'Record<string | number, any>'.
Nov 26, 2022
Two errors in a fresh angular 15.0.1/aws-amplify 5.0.4 project:
Reproduce this issue:
npm install -g @angular/cli@15.0.1 npm install -g @aws-amplify/cli@10.5.1 amplify configure ng new testing-type-fest cd testing-type-fest/ amplify init npm install --save aws-amplify @aws-amplify/ui-angular amplify add auth ng build
Maybe the amplify statements are optional, please try.
Sections from the package-log.json (versions and dependants):
Questions
Is there a workaround (e.g. switching off the error in tsconfig.json?)
where is that fixed, stacktrack-parser and/or ansi-escapes can fix this?
The text was updated successfully, but these errors were encountered: