skip to Main Content

Following this tutorial:

https://docs.amplify.aws/start/getting-started/setup/q/integration/angular/#install-amplify-libraries

when I do npm install --save aws-amplify @aws-amplify/ui-angular I get compilation error

Error: node_modules/type-fest/ts41/get.d.ts:93:37 - error TS2344: Type 'BaseType' does not satisfy the constraint 'Record<string | number, any>'

I follow the advice in https://github.com/aws-amplify/amplify-js/issues/10775 and now it compiles but shows empty screen

2

Answers


  1. Chosen as BEST ANSWER

    I was using node 16.15 - upgrade to 16.17 solve the problem


  2. Add this to your package.json file

      "overrides": {
        "type-fest": "3.3.0"
      }
    

    The issue is with type-fest, @aws-sdk/middleware-retry has a has transitive dependency. This has been fixed in aws/aws-sdk-js-v3#2191 – more info to the above issue here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search