I'm using global stylesheet and sass.
With 2.4.1 or beta8, my app doesn't build anymore. Fails with:
Module build failed: ReferenceError: /path/to/my/app/styles/index.scss: flex is not defined
I have the same issue, it started in v3 beta7 and looks like it has something to do with stylis. In my case, I have external scss that I am bringing by following the global css example
It looks like stylis is attempting to handle this but it is already handled.
This is likely fixed in Stylis, see https://github.com/thysultan/stylis.js/blob/master/CHANGELOG.md#3015-june-02-2016.
Dont mind the incorrect year of the changelog entry: https://github.com/thysultan/stylis.js/issues/31.
This is likely fixed in Stylis, see https://github.com/thysultan/stylis.js/blob/master/CHANGELOG.md#3015-june-02-2016.
Confirmed! Thanks.
Sorry for the late question, how did you get round this issue with Stylis? I tried doing npm update stylis but it's still not working.
Update next like "yarn add [email protected]" or "npm install --save [email protected]
I ended up doing a shrinkwrap with the stylis version pinned to the latest.
Not sure if this is an issue for anyone else, but I'm having the error w/ any version past 2.3.1 :/
I am using next 2.4.3. With the example with-global-styles, then it works fine. However, when I add less support, it starts to give this error again
Just saw that the latest 2.4.4 come with the stylis 3.1.5. I don't have the problem anymore. Awesome !!!!
Most helpful comment
Sorry for the late question, how did you get round this issue with Stylis? I tried doing
npm update stylisbut it's still not working.