You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build error occurred
Error: > Build failed because of webpack errors
at build (C:\Users\TESS\Documents\GitHub\01car.fr\front\node_modules\next\dist\build\index.js:15:918)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
Solution
Had install webpack, no work
change next.config.js
module.exports = {
distDir: 'build',
}
Still got the same error
Additional comments
Might be had to change the webpack version ?
The text was updated successfully, but these errors were encountered:
No the proplem is with next.config.js i have had the same issue for 3 hours but finally i fix it still here is my answer >
chang this entire file script to
`
const withPlugins = require("next-compose-plugins");
const withImages = require("next-images");
const withSass = require("@zeit/next-sass");
const withCSS = require("@zeit/next-css");
const withFonts = require("next-fonts");
const path = require("path");
Version
1.0.0
Reproduction link
https://github.com/creativetimofficial/notus-nextjs?ref=twnjs-index
Operating System
node js
Device
desktop
Browser & Version
chrome 86.0.4240.75
Steps to reproduce
What is expected?
Build in .next file
What is actually happening?
Build error occurred
Error: > Build failed because of webpack errors
at build (C:\Users\TESS\Documents\GitHub\01car.fr\front\node_modules\next\dist\build\index.js:15:918)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
Solution
Had install webpack, no work
change next.config.js
module.exports = {
distDir: 'build',
}
Still got the same error
Additional comments
Might be had to change the webpack version ?
The text was updated successfully, but these errors were encountered: