-
Notifications
You must be signed in to change notification settings - Fork 12k
SCSS: Failed to load #1916
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
Comments
The documentation is for the |
I have a similar issue (With newly installed angular-cli@webpack) :
|
Dupe of #1900 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Versions. Please run
ng --version
.Repro steps.
ng new sassy-project --style=scss
The log given by the failure.
XCEPTION: Failed to load http://localhost:4200/app/app.component.scssBrowserDomAdapter.logError @ browser_adapter.ts:82BrowserDomAdapter.logGroup @ browser_adapter.ts:93ExceptionHandler.call @ exception_handler.ts:58(anonymous function) @ application_ref.ts:413ZoneDelegate.invoke @ zone.js:323onInvoke @ ng_zone_impl.ts:72ZoneDelegate.invoke @ zone.js:322Zone.run @ zone.js:216(anonymous function) @ zone.js:571ZoneDelegate.invokeTask @ zone.js:356onInvokeTask @ ng_zone_impl.ts:61ZoneDelegate.invokeTask @ zone.js:355Zone.runTask @ zone.js:256drainMicroTaskQueue @ zone.js:474ZoneTask.invoke @ zone.js:426
Mention any other details that might be useful.
To use scss/sass the documentation mentions to use
styleUrls: ['app.component.scss']
, but when using the scss file extention, the error above is thrown. When using thecss
extension, everything works fine, but my IDE (WebStorm) won't let me open the sass file withCTRL + CLICK
, like it would when writing the correct extension.Either you should mention in the documentation, that you still have to write the compiled file in the
styleUrls
array, or some sort of magic needs to be implemented.P.S.: When creating a project from scratch using the command mentioned at 3, the app.component.scss file is created, but inside the .ts file styleUrls says
css
The text was updated successfully, but these errors were encountered: