/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
errors/duplicate-sass.mdx
35 строк
849 B
Bsodoge
Fix typos in duplicate-sass.mdx (#57045)
19 окт 2023, 16:32
Не верифицирован
19 окт 2023, 16:32
1d9ddfc
Код
Авторство
О чём код?
--- title: Duplicate Sass Dependencies --- ## Why This Error Occurred Your project has a direct dependency on both `sass` and `node-sass`, two different packages that both compile Sass files! Next.js will only use one of these, so it is suggested that you remove one or the other. ## Possible Ways to Fix It The `sass` package is a modern implementation of Sass in JavaScript that supports all the new features and does not require any native dependencies. Since `sass` is now the canonical implementation, we suggest removing the older `node-sass` package, which should speed up your builds and project install time. **Via npm** ```bash filename="Terminal" npm uninstall node-sass ``` **Via Yarn** ```bash filename="Terminal" yarn remove node-sass ``` ## Useful Links - [`sass` package documentation](https://github.com/sass/dart-sass)