Next.js Discord

Discord Forum

Unable to use Sass with Turbopack after upgrading to next v15.

Unanswered
Landseer posted this in #help-forum
Open in Discord
LandseerOP
We're using Sass in our project and it used to work perfectly fine with both webpack and turbopack when we were using Next v14.

However, we started getting errors on pseudo-selectors (& selector) after upgrading to next v15. Though things worked fine on webpack, the error was specifically limited to Turbopack.

As a workaround, I used useSwcCss which worked perfectly fine with Next 15 and made Sass work with Turbopack.

But the useSwcCss flag has now been removed in Next v15.1 which is a breaking change for us making us unable to use Turbopack.

Has anyone faced a similar issue and found a fix?

0 Replies