Refresh throws 404 when using @nrwl/web:file-server
See original GitHub issueCurrent Behavior
When using @nrwl/web:file-server I get a 404 on browser refresh for any route other than the root. This does not happen when using @angular-devkit/build-angular:dev-server
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "test-app:build"
},
"configurations": {
"production": {
"browserTarget": "test-app:build:production"
}
}
},
"serve-nx": {
"builder": "@nrwl/web:file-server",
"options": {
"buildTarget": "test-app:build",
"browserTarget": "test-app:build",
"withDeps": true,
"parallel": true
},
"configurations": {
"production": {
"buildTarget": "test-app:build:production",
"browserTarget": "test-app:build:production"
}
}
},
Issue Analytics
- State:
- Created 2 years ago
- Reactions:9
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Angular 2: 404 error occur when I refresh through the browser
Currently, I worked with the angular 9 application and deployed it on an IIS server with a web.config file and when we refresh...
Read more >Power BI API Refresh dataset 404 error
Hi everybody. I'm trying to set up execution of dataset refresh with Power BI API. I've set it up for one dataset in...
Read more >Angular 2 Routing : 404 page not found on refresh - Medium
If you're new to angular then you will encounter a problem like refreshing the page gives 404 Page not found error.
Read more >Error 404 not found - What does it mean & how to fix it! - IONOS
Reload the page: It might be that the error 404 has appeared for the simple reason that the page did not load properly....
Read more >Angular 6+ deploy to server/ solve 404 Not Found error on ...
This article will hep you to deploy angular 6+ application on apache server also to solve 404 not found error on page refresh....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is quite an annoying bug. One of the main reasons that made me decide to migrate to Nx was to speed up the builds. Unfortunately, computational caching is not enabled by default, so I had to spend almost a day to find out how to turn it on.
And now I realize that the feature is completely unusable due to this bug.
I hope this will be fixed sooner than the majority of bugs at angular 😃
I believe this issue should not be closed unless it’s fixed. Everyone is just using a workaround, as far as I understand