Build errors in NextJS in __webpack_require__

Solution 1:

Try to clean your ".next" folder and run npm install again.