question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compiling two scss files fails build

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
JeffreyWaycommented, Jan 26, 2017

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.

0reactions
brandonferenscommented, Jan 26, 2017

Yep, that “fixed” the issue. Strange

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found