Issues with SCSS modules after Upgrading Next.js
.header {
background-image: radial-gradient(
to top left,
rgba(150, 55, 226, 1) 0%,
rgba(150, 55, 226, 0) 100%
),
radial-gradient(
to bottom right,
rgba(0, 146, 255, 1) 0%,
rgba(0, 146, 255, 0) 100%
),
linear-gradient(rgba(16, 19, 68, 0), rgba(16, 19, 68, 0.5)),
url('../images/hero.jpg'); <<<<<<===== This!swcMinifyoption on or off, or with a
.babelrcfile in place (which supposedly uses the old build pipeline)
..it should work, assuming it’s public/images/hero.jpg
src/images/hero.jpgin my site
/public
radial-gradientwith
-webkit-and generating CSS that nothing thinks is valid.. if I pull my old generated CSS with that prefix in it, things work… wtf?
Was this answer helpful?
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.