-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error during "ng build" on Amplify Angular #13644
Comments
Hey👋 thanks for raising this! I'm going to transfer this over to our JS repository for better assistance 🙂 |
Hello, @etr and sorry to hearing you're running into this. I'm wondering if this is tied to v18 of Angular and some TypeScript compatibility issues. Can you see if downgraded to v17 for Angular resolves this? In the mean time we'll look into why the build issues are happening with DataStore. |
Hey, thanks for the response. Unfortunately, even downgrading to v17 still produces the same issue. Downgrading to Angular v16 did work though. I suspect that what made it work is that I could downgrade to typescript 4.9.4. Angular 17+ requires typescript 5+ which seems to be the culprit. Attached a package.json that actually works. |
Hi, I'm experiencing something similar when upgrading from Angular v17 to v18 and trying to run the project,
|
I'm attempting to upgrade Angular to v17 and getting the same errors. |
i get the same upgrading to angular 18 - i don't want to upgrade to amplify gen2 as it would be far too much work for too little gain |
to get around this, i've "temporarily" added to
hopefully the angular team will get around to resolving this some time soon |
I ran into a similar problem. |
We encountered the same issue during the upgrade to Angular 18 |
I have the same problem with Angular 17...any update, solution or workaround? this is blocker. |
It's just that the types file of amplify-js does not support the strict mode of the latest typescript version needed by Angular. But it's just a check, your app will work fine. As mentioned above, you can use |
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v20.15.1
Amplify CLI Version
12.12.4
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made
Describe the bug
I am using Amplify with Angular and Ionic. As I perform "ng build" I get the following error:
Expected behavior
No errors
Reproduction steps
package.json
Project Identifier
9a1c6b8ab468bb739b4aaa401ebab656
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: