Skip to content

TypeError when importing from 'typescript' in file #47

@qlonik

Description

@qlonik

Whenever I have imports from 'typescript' module, I get type error: TypeError: Cannot read property 'type' of null. I'm not sure if it is caused by this package or is coming from somewhere else. However, when I comment out the line 'import/resolver': { typescript: { alwaysTryTypes: true } }, in .eslintrc.js file, then the file gets properly linted.

I created a small reproduction here: https://github.com/qlonik/eslint-import-resolver-typescript-repro

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