SassError migrating to V11 #11439
-
I'm trying to migrate from V10 to V11. Getting a SassError at compile time. Please advise.
Here are my package.json dependencies:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi there! 👋 It may be that you need to configure Sass with Next.js to correctly load modules from I believe you can do this in your 'use strict';
const path = require('path');
module.exports = {
sassOptions: {
includePaths: [path.join(__dirname, 'node_modules')],
},
}; Hope this helps! |
Beta Was this translation helpful? Give feedback.
Hi there! 👋
It may be that you need to configure Sass with Next.js to correctly load modules from
node_modules
.I believe you can do this in your
next.config.js
file by writing the following:Hope this helps!