Next.js Discord

Discord Forum

Build failed because of webpack errors

Unanswered
American Chinchilla posted this in #help-forum
Open in Discord
American ChinchillaOP
Failed to compile.

../../node_modules/buffer/index.js
Module parse failed: Unexpected token (509:18)
File was processed with these loaders:
 * ./node_modules/next/dist/build/webpack/loaders/next-flight-client-module-loader.js
 * ./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js
You may need an additional loader to handle the result of these loaders.
|   }
| 
>   // Force coercio

Import trace for requested module:
../../node_modules/buffer/index.js
./node_modules/axios/lib/helpers/toFormData.js
./node_modules/axios/lib/axios.js
./node_modules/axios/index.js
./src/app/(app)/(login)/page.tsx


> Build failed because of webpack errors

when i create production build i get this on dev version it doesnt occur unless i clear cookies

0 Replies