You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The extractor runs into a parsing error when working with the Bulma framework .
The issue seems to stem from the differences between old-style SASS and new-style SCSS. Specifically, I write my styles using the new style, but I also @import some old-style files from a package.
main.scss - notice that I'm using a new-style .scss file.
// import the initial variables from bulma
//
@import "sass/utilities/initial-variables";
@import "sass/utilities/functions.sass";
// import bulma framework (which happens to be a set of old-style .sass files)
//
@import 'bulma';
The renderSync step with node-sass works fine - the resulting CSS looks the way it should. Passing it to the sass-extract extract results in the following error:
Unhandled rejection Parsing error: Please check validity of the block starting from line #3
1 | // Float
3*| .is-clearfix
4 | +clearfix
Syntax: scss
Gonzales PE version: 4.2.3
gonzales-pe is clearly attempting to use the wrong syntax (scss instead of sass) when parsing this particular file. And digging around in the source to this package, I notice that the scss syntax is hard-coded in parse.js at line 147. I've tried manually changing this (just to see what happens), but it breaks with other errors - clearly this is going to take more than just a simple fix.
The text was updated successfully, but these errors were encountered:
@Kryten0807 thank for the detailed report. It looks like we have to distinguish between the different syntaxes and use the appropriate parser. Looking at the file type alone is not enough as it might not be available to the parser. I'll look into it this week.
The extractor runs into a parsing error when working with the Bulma framework .
The issue seems to stem from the differences between old-style SASS and new-style SCSS. Specifically, I write my styles using the new style, but I also
@import
some old-style files from a package.How to replicate the issue I'm seeing:
Set up a new project:
package.json
main.scss - notice that I'm using a new-style
.scss
file.test.js
The
renderSync
step with node-sass works fine - the resulting CSS looks the way it should. Passing it to the sass-extractextract
results in the following error:gonzales-pe
is clearly attempting to use the wrong syntax (scss
instead ofsass
) when parsing this particular file. And digging around in the source to this package, I notice that thescss
syntax is hard-coded in parse.js at line 147. I've tried manually changing this (just to see what happens), but it breaks with other errors - clearly this is going to take more than just a simple fix.The text was updated successfully, but these errors were encountered: