moxystudio / next-with-moxy

MOXY's boilerplate to accelerate the setup of new Next.js based web applications
https://next-with.moxy.tech
MIT License
101 stars 11 forks source link

Global css variables not working with @moxy/postcss-preset 5.0.0 #131

Open tiagodinis opened 2 years ago

tiagodinis commented 2 years ago

Updating @moxy/postcss-preset to version 5 gives the following error:

error - ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[3].oneOf[0].oneOf[4].use[1]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[3].oneOf[0].oneOf[4].use[2]!./www/app/cookie-banner/CookieBanner.module.css
CssSyntaxError

([object Object]:[object Object]) Selector ":root" is not pure (pure selectors must contain at least one local class or id)