Next.js Build is failing for the npm run build in the /frontend folder
Hey All, I am struggling with the build failure for the frontend project which is under mono project. My code has /frontend and /backend. I have configured the build path as /frontend, but it is failing to find the @lib path. I have lib folder under /frontend, but it is still failing. The same is working in my local.
4 Replies
build no: 5b58bb00-c32b-4879-8a87-b57a4274bc70 (if this helps to check what is happening)
Can you please share your repo if possible?
It seems like config issue like tsconfig or nextjs config
It is a private repo. I can share the tsconfig and nextjs config
tsconfig.json
and here is the next.config.js
Please check case sensitivity of your directory names and clear cache using
rm -rf .next node_modules, and try again npm i and npm run build