Next.js Discord

Discord Forum

Build error when setting up a new nextjs project

Unanswered
Pacific anchoveta posted this in #help-forum
Open in Discord
Pacific anchovetaOP
Please i get this build error when setting up a new project in nextjs. I have deleted my nodemodules folder and reinstalled dependencies and also recreated a new project severally but still get this error.






Failed to compile
../../../../node_modules/buffer/index.js
Module parse failed: Unexpected token (1119:5)
You may need an appropriate loader to handle this file type, currently no loaders are configured to
process this file. See https://webpack.js.org/concepts#loaders
I
Object.setPrototypeOf(newBuf, Buffer.prototype)
ret
This error occurred during the build process and can only be dismissed by fixing the error.

5 Replies

Pacific anchovetaOP
&752637460550385834 ?
Don’t ping mods for code help
Pacific anchovetaOP
I am saddened by the poor response to this problem. It has hindered progress on a project
@joulev Don’t ping mods for code help
Pacific anchovetaOP
Who do i tag then?