Skip to content

Error: Failed to load plugin 'import' declared in '.eslintrc': Cannot find module 'typescript/package.json' 2.27.0 #2665

@DerekWW

Description

@DerekWW

Lint jobs suddenly started failing with the following:

Error: Failed to load plugin 'import' declared in '.eslintrc': Cannot find module 'typescript/package.json'

After some digging it appears that 2.27.0 of eslint-plugin-import is breaking my pipeline. I have pinned to 2.26.0 and that has solved my issue. I have not investigated what the root cause may have been.

Node: 14.15.4
ESlint: 7.32.0

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