Error: @aws-amplify/datastore/lib-esm/types.d.ts- error TS2536: Type '"field"' cannot be used to index type ... #13845
Labels
DataStore
Related to DataStore category
pending-maintainer-response
Issue is pending a response from the Amplify team.
transferred
This issue was transferred from another Amplify project
TypeScript
Related to TypeScript issues
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
20.9.0
Amplify CLI Version
running aws-amplify 5.3.12 in Angular 18
What operating system are you using?
Windows 10
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
no
Describe the bug
Was using aws-amplify 5.3.12 with Angular 17. No problem. Updated to Angular 18, Updated aws-amplify to the latest version 5 which is 5.3.23. Tried to build and serve by running ng serve. Everything worked except for 3 errors in aws-amplify's
@aws-amplify/datastore/lib-esm/types.d.ts file. All three errors were of the same type
Expected behavior
No errors
Reproduction steps
Use aws-amplify version 5.* in an Angular 18 application.
Project Identifier
the given command does not work.
Log output
Additional information
Workaround: Add
"skipLibCheck": true,
to the ts.config file's compiler options
Cost: Type checking is skipped on ALL of the 100's of libraries used in an ANGULAR project which really sucks!
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: