-
Notifications
You must be signed in to change notification settings - Fork 12k
Error in multi styles #2403
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
Paths in |
Have same issue.. Did you find any solution for this ? |
@filipesilva :thanks...it works. So the path in angular-cli.json references to src/. So if your path is some directory on same level as src say node_modules then in angular-cli.json reference the file as ../node_modules/ |
@filipesilva Thanks that helped me fix my issue |
Another problem could be the missing of one of the styles. For example, if you have:
And the xxx.css is missing - Error thrown will be |
I had the same issue. But I have solved it. Thanks |
@ShaadH Its really silly that copy/pasted path throws an error. I had seen your comment 3 hours ago, but dint try. Finally I thought to give it a try and boom. Thank You! |
I copy and pasted the bootstrap URL from another project that worked, but didn't work in my new project. A fix could be double checking that the URL you copied matches the location of the file you are referencing. |
If you have this error in angular and angular-cli |
I had this problem but it was due to a simple typo in the angular.json - I had left "" as a style value in the projects architect build options styles. It's a good job I spotted it as the error message in this instance is useless. |
Hello, |
Angular 7 needs style file’s relative path from main project folder, so in Moreover, when you reference a npm package css/scss files in your |
ERROR in multi ../node_modules/bootstrap/dist/css/bootstrap.min.css ./src/styles.css |
You gotta use path that’s relative from to the main folder of your project. |
I replaced this styles from angular.json "styles": ["src/styles.css"] to , "styles": ["styles.css"] It worked for me! |
I think it is because of the problem with bootstrap, try this: "styles": [ Remove "../node_modules/bootstrap/dist/css/bootstrap.min.css" Step 2. Import bootstrap by adding this line These steps solved the errors I got during the building process. |
I solved in the following way. Hope it helps. |
@anmolsrepo: 👍 You saved me from wasting a day. |
Can we get this issue reopened? I also encountered the error on a clean install with v7.3 |
Thank you @anmolsrepo . That fixed the problem. |
Thanks @anmolsrepo . |
Does anyone have the solution to this problem? Older version works fine but not this 7.3 |
I had issue when I newly create project while serving it. Error was ERROR in multi ./styles.sass |
Also, verify that |
I try this and it works for me |
Can anybody help me with this? I included aos for animation and sliding and it was working fine. |
Here is what I did to make it work!
|
Thank you so much |
It worked. Thank you |
This is a breaking change... |
I had the same issue with a brand new angular 7 project. Just Installed it, npm start and got the error:
I just renamed styles.sass to styles.scss because that file was present in the project folder and npm start again. This resolved my issue. |
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.
angular-cli: 1.0.0.-beta.15
node: 4.4.7
Repro steps.
The app was created with angular-cli: ng new
I added semantic.min.css under src/assets folder
in angular-cli.json,
"apps" : [
{
"styles": [
"../src/assets/sematic.min.css",
"styles.css"
],
}
]
The log given by the failure.
run: ng serve
ERROR in multi styles
Module not found: Error: Can't resolve 'c:\working\ng2\reddit\src\assets\sematic.min.css' in 'c:\working\ng2\reddit\node_modules\angular-cli\models'
@ multi styles
Mention any other details that might be useful.
The text was updated successfully, but these errors were encountered: