-
Notifications
You must be signed in to change notification settings - Fork 20
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
"Cannot convert undefined or null to object" with postcss-simple-vars #83
Comments
I've stumbled upon this problem too. Is there any workaround? My current config is like this:
And style-globals.json is:
I get the same error you mentioned. As you can see, I tried to add fileOptions, so it isn't empty, but error stays. |
I've tried to remove globalVariables, leaving only fileOptions, but it's all the same. |
Actually, I get same error whenever I try to use explicitIncludes for react-toolbox. and ignorePaths on whole node_modules folder. Simple-vars configuration is irrelevant. |
And I try to use explicitIncludes instead of just including whole node_modules without tests, because of very long compilation time if I do that. |
So, when I do that:
I get that:
|
Any ideas on how could I use explicitIncludes? Because including whole node_modules leads to very slow compilation time. |
There's a bug in "ignorePaths": [
"node_modules/(?!react-toolbox/lib)"
] |
The error occurs when the
globalVariables
option is also in use and the postcss-simple-vars config is empty or has an empty fileOptions array:The text was updated successfully, but these errors were encountered: