I am a beginner in next js and I have a problem as mentioned, the project works in dev mode, but when I run npm run build, this error appears.
I didn't understand what is this for and where it come from.
info - Creating an optimized production build .E:\tutia-frontend\tutia-frontend-website\node_modules\next\dist\compiled\webpack\bundle5.js:59190
processContextHashSnapshot(path, tsh.hash);
TypeError: Cannot read property 'hash' of null at callback (E:\tutia-frontend\tutia-frontend-website\node_modules\next\dist\compiled\webpack\bundle5.js:59190:46)
I am a beginner in next js and I have a problem as mentioned, the project works in dev mode, but when I
run npm run build
, this error appears.I didn't understand what is this for and where it come from.