Compiling two scss files fails build
See original GitHub issueI have worked on this for several hours and can’t figure out what is going on. I can compile either of two scss files, but not both at the same time. The error I get is:
error in ./resources/assets/sass/app.scss
Module build failed:
@charset "UTF-8";
^
Invalid CSS after "...load the styles": expected 1 selector or at-rule, was "var content = requi"
in /path/to/resources/assets/sass/app.scss (line 1, column 1)
@ ./resources/assets/sass/app.scss 4:14-605
@ multi ./resources/assets/js/team/index.js ./resources/assets/sass/app.scss ./resources/assets/sass/admin/app.scss ./resources/assets/sass/vendor/querybuilder.scss
error in ./resources/assets/sass/admin/app.scss
Module build failed:
.wassup {}
^
Invalid CSS after "...load the styles": expected 1 selector or at-rule, was "var content = requi"
in /path/to/resources/assets/sass/admin/app.scss (line 1, column 1)
@ ./resources/assets/sass/admin/app.scss 4:14-635
@ multi ./resources/assets/js/team/index.js ./resources/assets/sass/app.scss ./resources/assets/sass/admin/app.scss ./resources/assets/sass/vendor/querybuilder.scss
Each file on it’s own compiles just fine. I’ve added the node-sass file and added it as a loader, but that doesn’t either. Please help!
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top Results From Across the Web
Compiling two scss files fails build · Issue #193
I can compile either of two scss files, but not both at the same time. The error I get is: ... Compiling two...
Read more >sass - Scss (live scss compiler) throws an error when using ...
Well, the problem is caused by the Visual Studio Code extension you are using for compiling SASS or SCSS files to CSS files....
Read more >Sass Basics
Once Sass is installed, you can compile your Sass to CSS using the sass command. You'll need to tell Sass which file to...
Read more >Using SCSS Files Causes Compile Error - Angular - EJ 2
Hello, I have a problem trying to modify the scss variables to modify the theme, but this is causing a compilation error.
Read more >Sass, SCSS, and Less | WebStorm Documentation
Compiling SCSS into CSS: creating a File Watcher. In the New File ... As a result, two files are generated and shown nested...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s really weird. I’m not sure why it’s happening, but until I figure out why, make your second .sass() entry point file name different. Like - app.scss => admin.scss.
Really strange, though! I’m on it.
Yep, that “fixed” the issue. Strange