Next.js Discord

Discord Forum

SASS/Source Maps Resources

Unanswered
aufdemrand posted this in #help-forum
Open in Discord
Are there any resources that show how to enable source maps for SCSS used within a NextJS 14 project? I see conflicting information when asking any of the LLMs, and looking through the help forum here shows a bunch of questions asked/no answers. Are SCSS source maps even supported by Next?

2 Replies

I don't think so. I am facing the same probleme. the name field of sourcemap is not populmated until the v16.1.1-canary.14. But even with this, the turbopack code for css sourcemap always set the first index so you dont get the right filename but only the correct line number.
I did a PR 3 days ago but i think i didnt fallow the right procedure https://github.com/vercel/next.js/pull/88225
For info: I eventually created an [issue ](https://github.com/vercel/next.js/issues/88294) with the bug reproduction and the fix