Next.js Discord

Discord Forum

Error: EACCES Permission Denied and ENOENT Error

Unanswered
Bachman's Warbler posted this in #help-forum
Open in Discord
Bachman's WarblerOP
Hello everyone,

I'm encountering an issue with my Vercel deployment, and I could use some assistance in resolving it. I'm getting the following error when trying to deploy my project:
My project repository can be found here: https://github.com/wiscaksono/cygnus

I've tried a few things to troubleshoot the issue, but I'm not sure what's causing it or how to fix it. Any help or suggestions on how to resolve this error would be greatly appreciated.

Thank you in advance for your assistance!

14 Replies

Bachman's WarblerOP
anyone? 😦
If you test the production build locally, does this problem remain?
@fuma If you test the production build locally, does this problem remain?
Bachman's WarblerOP
everything is fine on my local build
That's strange though.
This error says there's a problem with reading "node_modules/classnames", as I observe, [there](https://github.com/wiscaksono/cygnus/blob/42a5b56713d0603a8d93248a8e1e663ac8a12669/src/components/layout/index.tsx#L9) is the only thing related to classnames.
I can't find any file system operations as well in your project.

I guess:
1. Remove the utility file and try again
2. (If exists) remove fs operations
Bachman's WarblerOP
i remove the utility files here https://github.com/wiscaksono/cygnus/commit/2ca693117e924e9d4907620c683cbd8e4318b741, but am still having the same issue
hmm is it only happens on node_modules/classnames?
Bachman's WarblerOP
yep
sorry, I can't reproduce it tho, it'll difficult since there're many stuffs have to be setup in order to test locally

Maybe classnames is a package used by your dependencies
I'd found this on npm, it might be used by one of your dependencies: https://www.npmjs.com/package/classnames but not installed in your project
Can installing the package fixes your problem?
Bachman's WarblerOP
i'll give a try
Bachman's WarblerOP
Well sry, I have no ideas then

If I were you, I would probably remove elements from my page/layout progressively, until the error has gone away. It’s really strange
Bachman's WarblerOP
that's ok, thank you for trying!!
It seems to be fixed on the one ending with “f”, and your app at https://cygnus.wiscaksono.com is working great for me