Closed pau1foster closed 9 months ago
@pau1foster Thank you for bringing this to our attention! We are working on a fix now and you should be able to test in unstable today or tomorrow.
this is now fixed & working fine in: 6.0.6-unstable.8ca7c15.0 (subsequent commit). thanks @erinleigh90.
@pau1foster The changes were released to unstable yesterday evening. Can you please test with aws-amplify@unstable and verify that your project is building correctly?
@erinleigh90 npm install aws-amplify@unstable pulls in what i'd mentioned above, "aws-amplify": "6.0.6-unstable.8ca7c15.0".
i'm not sure why but it didn't create a specific one for this commit, pipeline issue? latest on the unstable branch is fine.
I also faced this issue and in my case the problem was that my IDE uses auto-completion for imports and imported some stuff from deep paths within the amplify package. Changing those to as flat as possible paths made the error go away.
The fix for this was released today in Amplify v6.0.6. I'll close this issue for now, but let us know if there are any further issues related to this bug!
Before opening, please confirm:
JavaScript Framework
Angular
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
When doing an ng build the following error is shown:
Error: node_modules/@aws-amplify/core/src/clients/middleware/retry/middleware.ts:116:3 - error TS2322: Type 'Timeout' is not assignable to type 'number'.
116 timeoutId = setTimeout(resolve, timeoutMs);