Skip to content

404 when reloading route o ng build --prod #1630

@Abubarrett

Description

@Abubarrett

Info

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

-Mac OSX El Capitan

  1. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here:

angular-cli: 1.0.0-beta.11-webpack
node: 6.3.0
os: darwin x64

  1. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.

I'm geting a weird error, when I reload on any route with the cli (example "app/route"), everything works fine, but if I i "ng build --prod", and then test it, if I reload on that particular route ('app/route'), it gives me a 404 error instead of actually working, Am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfultype: bug/fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions