Skip to content

Default linting does not work with TypeScript v4 #810

Description

@aayani

Current Behavior

The yarn lint or tsdx lint src test is not behaving as expected after I upgraded TypeScript from v3 to v4. Getting the error Parsing error: Cannot read property 'map' of undefined (in some files) in my case when I run these scripts. This make the pre-commit checks fail, hence rendering the husky hook useless.

Expected behavior

The yarn lint script should work with TypeScript v4 as it was with v3.

Suggested solution(s)

  • Check for compatibility with the latest TypeScript version and see what's causing it to break

Additional context

Works fine when I revert to TypeScript 3. Problem only lies with the new version.

Your environment

Software Version(s)
TSDX 0.13.2
TypeScript 4.0.2
Browser -
Yarn 1.22.4
Node 12.18.3
Operating System Ubuntu 20.04.1 LTS (Focal Fossa)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions