-
Notifications
You must be signed in to change notification settings - Fork 12k
Expected 'styles' to be an array of strings. #13149
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
Using CSS instead of SCSS leads to the same results. Also adding any rule to a CSS or SCSS file leads to the error:
or:
|
Hi thanks for reporting this. The problem here is that at the moment we only handle extensions in lowercase |
@alan-agius4 yes, you're right. After renaming the SCSS/CSS files to lowercase and updating references, the generated application works ! |
Note: we should only accept valid file extensions. |
Re-opened, as we should provide a better error message if an invalid extension is provided. Ie: we should use an enum. Though this might be a breaking change if someone if using the API and we should include it for V8. |
I got this as well in the process of upgrading to Angular 7 and upgrading various dependencies to their latest versions. I found that using raw-loader version 2.0.0 was causing this error even though my styleUrls were correct syntax. Downgrading to raw-loader version 1.0.0 resolved this issue. I don't know if this helps in the above situation. |
This helped me, ma problem got solved, but how did you figure out the solution? |
I also saw this same error when I upgrade raw-loader to 2.0.0. Back to 1.0.0 removed this error as well. |
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. |
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Angular CLI: 7.1.2
Node: 10.13.0
NPM: 6.4.1
OS: Windows 10 x64
Angular: 7.1.2
Repro steps
ng new my-app --routing --style SCSS
cd my-app
ng serve
Open http://localhost:4200/ in Chrome
The log given by the failure
This error is logged on the browser console:
Desired functionality
The sample application should be displayed. Instead a white page is displayed and the error above is logged to the console.
Mention any other details that might be useful
Nothing was changed in the application after creating it using ng new. Using ng build and accessing the application through IIS leads to the same results.
The text was updated successfully, but these errors were encountered: