Skip to content

Too many symbolic links encountered #20

@romanzy313

Description

@romanzy313

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions