-
Notifications
You must be signed in to change notification settings - Fork 16
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
TypeError: Cannot read property 'match' of null #34
Comments
Can you show me the source file and settings that caused the error to begin with? Was it a sass file using the built-in settings? |
I suppose i have the same problem.
And it fails
But if i change like so
or so
or so
it works. |
I have encountered the same problem using sass-brunch. My scss file starts like this: @import "compass/reset";
@import "compass/typography/vertical_rhythm";
@import url("https://fonts.googleapis.com/[…]"); This made progeny throw the following error:
However, when I change the beginning of the file to @import url("https://fonts.googleapis.com/[…]");
@import "compass/reset";
@import "compass/typography/vertical_rhythm"; or @import "compass/reset";
@import url("https://fonts.googleapis.com/[…]");
@import "compass/typography/vertical_rhythm"; everything works without problems. |
It looks like this error appears when we have only one import from url in file:
If I add extra import from empty file (I called it "_nothing.scss" and put in the same folder) then the error goes away.
|
I've got this too with using sass-brunch, but it happens when I import the gutenberg library. Turms out its config has a conditional import url statement. Thanks @wmnnd and @VladimirKasatkin for helping me figure out that one... |
Why do not you try to fix it as follows? progeny() ↓ progeny({
multipass: [
/@import[^;:]+;/g,
/\s*['"][^'"]+['"]\s*,?/g,
/(?:['"])([^'"]+)/
]
}) Exclude import path including ":" |
I get this error when building with gulp.
I changed the code like that ( if (val != null) added) and it works fine. Please, tell me why val can be . If the change is correct add it to the repository.
(index.js) at line 104
Thanks
The text was updated successfully, but these errors were encountered: