- In my NextJs project, I have created cookie.ts file in utils folder.
- When I run "npm run dev" and when I check my application on localhost:300 it works fine, code from my file in utils/cookie.ts is fetched and everything seems ok without any errors.
- When I push my changes to gitlab then build fails with the error "Cannot find module '../utils/cookies' or its corresponding type declarations."
Here is screenshot from gitlab:
Project structure:

