/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
errors/improper-devtool.mdx
22 строки
625 B
Delba de Oliveira
docs: Migrate error messages to MDX and App Router. (#52038)
05 июл 2023, 16:11
Не верифицирован
05 июл 2023, 16:11
44d1a1c
Код
Авторство
О чём код?
--- title: 'Improper webpack `devtool` used in development mode' --- ## Why This Error Occurred Next.js chooses the most optimal `devtool` for use with webpack. Changing the `devtool` in development mode will cause severe performance regressions with your application. ## Possible Ways to Fix It Please remove the custom `devtool` override or only apply it to production builds in your `next.config.js`. ```js filename="next.config.js" module.exports = { webpack: (config, options) => { if (!options.dev) { config.devtool = options.isServer ? false : 'your-custom-devtool' } return config }, } ```