Next.js Discord

Discord Forum

Nextjs error during npm run dev

Unanswered
Bartholomeas posted this in #help-forum
Open in Discord
Hello, im getting strange error in terminal when trying to run my app. I didnt launched it for a while, today i installed everything again (and cloned repo again too), but after trying to run "pnpm run dev" im getting this error:


TypeError: Cannot read properties of null (reading 'length')
    at WasmHash._updateWithBuffer (/Users/bartholomeas/Kod/cetus/pigenernextapp/node_modules/.pnpm/next@13.5.6_@babel+core@7.23.6_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/webpack/bundle5.js:28:1375509)
    at WasmHash.update (/Users/bartholomeas/Kod/cetus/pigenernextapp/node_modules/.pnpm/next@13.5.6_@babel+core@7.23.6_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/webpack/bundle5.js:28:1374844)
    at BatchedHash.update (/Users/bartholomeas/Kod/cetus/pigenernextapp/node_modules/.pnpm/next@13.5.6_@babel+core@7.23.6_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/webpack/bundle5.js:28:1371205)
    at reduce (/Users/bartholomeas/Kod/cetus/pigenernextapp/node_modules/.pnpm/next@13.5.6_@babel+core@7.23.6_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/webpack/bundle5.js:28:298183)
dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/webpack/bundle5.js:13:28867), <anonymous>:6:1)
    at AsyncQueue._handleResult (/Users/bartholomeas/Kod/cetus/pigenernextapp/node_modules/.pnpm/next@13.5.6_@babel+core@7.23.6_react-
...


And so on.

Any ideas? Tried to change npm versions etc, but without results.

Macbook Air M1, Node 18 and 16 (tried), nextjs 13.5.6

8 Replies

Reinstalled node_modules many times
Masai Lion
can you try other packet managers like npm/yarn ?
It was working on pnpm all the time but ill try that (some time ago i updated pnpm, maybe thats reason)
Masai Lion
yeah sounds like a plugin issue after reading the error message you could also try downgrading the pnpm version. Im usually using npm for windows and linux systems and so far i had close to 0 issue with it so im not sure about mac
also 1 more thing does the issue happen if you put --turbo or ya already tryed that?
@Masai Lion also 1 more thing does the issue happen if you put --turbo or ya already tryed that?
With turbo it was never working 😅 But with yarn it started correctly
thanks! so ill need to downgrade pnpm
Masai Lion
ya welcome , i think you can report your issue to the proper github section of pnpm to have a better results out of it. Other then that im always happy to help 🙂