Need to reinstall NextJS everytime in order to build my app..
Unanswered
Chartreux posted this in #help-forum
ChartreuxOP
I use capacitorJS with next. for some strange reason i am getting this strange error for every second build, im just saying that i am pretty new to next so yeah.
I have tried reverting the code multiple times before the issue started to no avail. The only fix i found for this is to do the following:
Delete the .next folder
install next with pnpm
build again
And magically it works, and i have absolutely no idea whats causing this.
I have tried reverting the code multiple times before the issue started to no avail. The only fix i found for this is to do the following:
Delete the .next folder
install next with pnpm
build again
And magically it works, and i have absolutely no idea whats causing this.
TypeError: Cannot read properties of undefined (reading 'length')
at WasmHash._updateWithBuffer (C:\Users\eitan\Desktop\comdo-app\node_modules\.pnpm\next@15.3.3_react-dom@19.1.0_react@19.1.0__react@19.1.0\node_modules\next\dist\compiled\webpack\bundle5.js:29:1434980)
at WasmHash.update (C:\Users\eitan\Desktop\comdo-app\node_modules\.pnpm\next@15.3.3_react-dom@19.1.0_react@19.1.0__react@19.1.0\node_modules\next\dist\compiled\webpack\bundle5.js:29:1434315)
at BatchedHash.update (C:\Users\eitan\Desktop\comdo-app\node_modules\.pnpm\next@15.3.3_react-dom@19.1.0_react@19.1.0__react@19.1.0\node_modules\next\dist\compiled\webpack\bundle5.js:29:1430676)
at C:\Users\eitan\Desktop\comdo-app\node_modules\.pnpm\next@15.3.3_react-dom@19.1.0_react@19.1.0__react@19.1.0\node_modules\next\dist\compiled\webpack\bundle5.js:29:303515
at processQueue (C:\Users\eitan\Desktop\comdo-app\node_modules\.pnpm\next@15.3.3_react-dom@19.1.0_react@19.1.0__react@19.1.0\node_modules\next\dist\compiled\webpack\bundle5.js:29:1448668)
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
Node.js v20.15.1
Next.js build worker exited with code: 1 and signal: null
ELIFECYCLE Command failed with exit code 1.
13 Replies
ChartreuxOP
just to clarify, "next dev" works flawlessly
ill check
ChartreuxOP
nope
it also works once
and then dies
ChartreuxOP
thats oodd
so
if i cycle between wsl and windows it works
first build in win, second one in lin
and then repeat
then it orks