rsnext/packages/next/client/dev
Baruch-Adi Hen e2fde26b59
Fix: Cleaner error message when importing sass without it being installed in dev (#35051)
This PR removes the not-very-helpful stack trace when sass is being used but the npm package is not installed. Fixes #13975

- Fix behavior to show the modified error message if either node-sass OR sass is missing
- dispose of stack trace if the condition above passes
- update the error link to [err.sh](https://err.sh/next.js/install-sass) equivalent 
- update the relevant test to verify the stack trace is omitted and to account for the new link


## Bug

- [x] Related issues linked using `fixes #13975`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`


Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
2022-05-22 06:56:18 +00:00
..
error-overlay Fix: Cleaner error message when importing sass without it being installed in dev (#35051) 2022-05-22 06:56:18 +00:00
amp-dev.js chore: replace deprecated String.prototype.substr() (#35421) 2022-03-24 17:49:38 -04:00
dev-build-watcher.js Fix build activity indicator position (#36208) 2022-04-15 23:53:00 -05:00
fouc.ts Fix various Trusted Types violations without use of policy (#34726) 2022-05-05 00:11:36 +00:00
on-demand-entries-client.js Ensure we don't poll page in development when notFound: true is returned (#34352) 2022-02-16 18:53:48 +00:00
webpack-hot-middleware-client.js Add client HMR tracing for debugging (#36328) 2022-04-21 08:30:23 +00:00