question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Refresh throws 404 when using @nrwl/web:file-server

See original GitHub issue

Current 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:closed
  • Created 2 years ago
  • Reactions:9
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Maximaximumcommented, Apr 12, 2021

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 😃

0reactions
Maximaximumcommented, Dec 28, 2021

I believe this issue should not be closed unless it’s fixed. Everyone is just using a workaround, as far as I understand

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found