Build failed because of webpack errors
Hi folks! I'm having this issue trying to build/deploy next.js app integrated with prisma on Vercel. It seems that I'm having some permission issues but i don't understand why:
`next build▲ Next.js 15.3.3 - Environments: .env Creating an optimized production build ... glob error [Error: EPERM: operation not permitted, scandir 'C:\Users\Walter\Cookies'] { errno: -4048, code: 'EPERM', syscall: 'scandir', path: 'C:\Users\Walter\Cookies' } Failed to compile. Error: EPERM: operation not permitted, scandir 'C:\Users\Walter\Cookies'
Build failed because of webpack errors`Does anyone experienced the same issue?
2 Replies
You chose to debug with a human. They'll tinker with your query soon. If you get curious meanwhile, hop into
#ask-ai
for a quick spin!It indeed looks like permission related issue.
Did you try to run the command via an admin
Also try changing the project path? What happens if you build project at different location instead of 'C:\Users\Walter\Cookies