Skip to content

ng serve, browser serve wrong path for material fonts (self hosted), in dev server #10412

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

Closed
djleonskennedy opened this issue Apr 20, 2018 · 2 comments

Comments

@djleonskennedy
Copy link

Versions

Angular CLI: 6.0.0-rc.5
Node: 8.9.4
OS: win32 x64
Angular: 6.0.0-rc.5
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.5.7
@angular-devkit/build-angular     0.5.7
@angular-devkit/build-optimizer   0.5.7
@angular-devkit/core              0.5.7
@angular-devkit/schematics        0.5.7
@angular/cdk                      6.0.0-rc.12
@angular/material                 6.0.0-rc.12
@ngtools/json-schema              1.1.0
@ngtools/webpack                  6.0.0-rc.5
@schematics/angular               0.5.7
@schematics/update                0.5.7
rxjs                              6.0.0-uncanny-rc.7
typescript                        2.7.2
webpack                           4.5.0

Repro steps

  1. install app ng new app

  2. install material icons (as self hosting)
    image

  3. set up lazy routes someLazyRoute -> someLazyRoute2 (both lazy)

  4. open them by full path localhost:4200/someLazyRoute/someLazyRoute2

  5. add some icon in someLazyRoute for example;

  6. check console

Observed behavior

I've setup project with lazy loading;

have structure localhost:4200/account/home (all routes are lazy loaded)
if i open app from root like localhost:4200 icons serves well
if i serve from path localhost:4200/account/home

i have next a result:
image

this is Frames screen from chrome
image

Desired behavior

icons loaded as expected

Mention any other details that might be useful (optional)

seems like this problem with dev server;
i've tried serve this via http server with spa mode and all works fine also in IE11 all works fine too even in ng serve

@cyrilletuzi
Copy link
Contributor

Duplicate of #10378

@clydin clydin closed this as completed Apr 20, 2018
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants