Skip to content

linter: Error "Is a directory (os error 21)" when installing packages whose names end in ".js" #11930

@mikoim

Description

@mikoim

What version of Oxlint are you using?

1.3.0

What command did you run?

oxlint

What does your .oxlintrc.json config file look like?

// your config here

What happened?

When a package whose directory name ends with .js (e.g. bignumber.js) is installed under node_modules, the tool fails with the following runtime error:

× Failed to open file /home/a/b/node_modules/bignumber.js with error "Is a directory (os error 21)"

It appears that the program is treating the directory as if it were a file.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions