rsnext/errors/duplicate-sass.mdx
Delba de Oliveira 44d1a1cb15
docs: Migrate error messages to MDX and App Router. (#52038)
This PR is part of a larger effort to migrate error messages to MDX and
use App Router: https://github.com/vercel/front/pull/23459
2023-07-05 06:11:16 -07:00

35 lines
843 B
Text

---
title: Duplicate Sass Dependencies
---
## Why This Error Occurred
Your project has a direct dependency on both `sass` and `node-sass`, two
different package that both compile Sass files!
Next.js will only use one of these, so it is suggested 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)