Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Too many symbolic links encountered #20

Open
romanzy313 opened this issue Nov 18, 2023 · 0 comments
Open

Too many symbolic links encountered #20

romanzy313 opened this issue Nov 18, 2023 · 0 comments

Comments

@romanzy313
Copy link

romanzy313 commented Nov 18, 2023

I get the following error while trying to serve node_modules folder:

ELOOP: Too many symbolic links encountered
 syscall: "stat"
   errno: -40

The solution is to not call listFiles if alwaysStatic is set to false. I also think forcing static behavior in production should be removed, as it can be done easily by the library consumer. It is a one-liner like this:

.use(staticPlugin({
  alwaysStatic: process.env.ENV === 'production'
}))

You can find modified version addressing this issue here

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant