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) |
Current Behavior
The
yarn lintortsdx lint src testis not behaving as expected after I upgraded TypeScript from v3 to v4. Getting the errorParsing 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 lintscript should work with TypeScript v4 as it was with v3.Suggested solution(s)
Additional context
Works fine when I revert to TypeScript 3. Problem only lies with the new version.
Your environment