Basic Angular 17 frontend deployment causes 404 with Amplify Hosting #3837
Labels
archived
This issue has been locked.
manual-deploy
pending-triage
transferred
This issue was transferred from another Amplify project
Before opening, please confirm:
JavaScript Framework
Angular
Amplify APIs
Not applicable
Amplify Categories
hosting
Environment information
Describe the bug
Hello wonderful team and community,
I am having an issue with my Angular app after upgrading everything to Angular 17 and Amplify 6. Previously, I was on Angular 16 and Amplify 5, and frontend deployment worked perfectly. However, it does not seem to work anymore.
To check if a basic Angular project would work, I created a brand new "amplify-app" project with
ng new amplify-app
with CSS and without SSR, andamplify init
. I added the parameters in tsconfig.json for strict mode. Furthermore, I added the polyfills following the guide. Finally, I usedamplify add hosting
with manual deployment. After doingamplify publish
, I was surprised that the hosted url brings me to an empty page with 404 errors in the console. Locally, the default Angular page opens but not with the deployed website.As such, I am unable to use all the new functionalities of Angular 17 and Amplify 6 that are ready for production...
Can you help me out with this? Thank you very much!
Expected behavior
Basic Angular website deployed and running on Amplify Hosting.
Reproduction steps
ng new amplify-app
with CSS and no SSRcd amplify-app
amplify init
amplify add hosting
with manual deploymentamplify publish
Code Snippet
// Put your code below this line.
Log output
aws-exports.js
Manual configuration
amplifyconfiguration.json:
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: