- Within my NextJs project, I have generated a cookie.ts file in the utils directory.
- Upon running "npm run dev" and accessing my application on localhost:3000, everything runs smoothly with no errors, and the code in my utils/cookie.ts file is retrieved successfully.
- However, upon pushing my changes to GitLab, the build process fails with the error message "Cannot find module '../utils/cookies' or its corresponding type declarations."
Refer to the screenshot below from GitLab:
https://i.sstatic.net/ZTrCp.png
Project structure as shown below: