Skip to content

SassError migrating to V11 #11439

Answered by joshblack
PatrikHysky asked this question in Help
May 19, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

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:

'use strict';

const path = require('path');

module.exports = {
  sassOptions: {
    includePaths: [path.join(__dirname, 'node_modules')],
  },
};

Hope this helps!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@PatrikHysky
Comment options

@jnm2377
Comment options

Answer selected by tay1orjones
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants