Skip to content
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

Failed to load lazy-img.component.scss #3

Open
FeatherzMcGraw opened this issue Feb 22, 2018 · 2 comments
Open

Failed to load lazy-img.component.scss #3

FeatherzMcGraw opened this issue Feb 22, 2018 · 2 comments

Comments

@FeatherzMcGraw
Copy link

FeatherzMcGraw commented Feb 22, 2018

I've cloned directly from the repo. I've installed the npm dependencies. I run ionic serve and the app loads in Chrome. But I get a blank screen, and the following errors in Dev Tools:

:8100/lazy-img.component.scss 
Failed to load resource: the server responded with a status of 404 (Not Found)

polyfills.js:3 
Unhandled Promise rejection: Failed to load lazy-img.component.scss ; Zone: <root> ; Task: Promise.then ; Value: Failed to load lazy-img.component.scss undefined
n.onUnhandledError @ polyfills.js:3

I am running Ionic 3.19.1 on a Mac.

@darwiin
Copy link

darwiin commented Mar 8, 2018

Same error here

@guilhrme
Copy link

guilhrme commented Mar 25, 2018

Workaround: Change line 13 of lazy-img.component.ts

from
styleUrls: [ './lazy-img.component.scss' ]
to
styleUrls: [ '/global/img-cache/lazy-img.component.scss' ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants