Skip to content

Parsing errors when tsconfig.json's compilerOption's module is set to none #1502

Closed
@ericbartholet

Description

@ericbartholet

What code were you trying to parse?

// Parsing error: Cannot read property 'text' of undefined
const foo = 1;

// Parsing error: Cannot read property 'kind' of undefined
(() => { })();

// Parsing error: Cannot use 'in' operator to search for 'name' in undefined
let a: "a" | "b";

What did you expect to happen?
No parsing errors

What actually happened?
Got parsing errors

Versions

package version
@typescript-eslint/parser 2.17.0
TypeScript 3.7.5
ESLint 6.8.0
node 10.18.1
npm 6.13.6

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpackage: typescript-estreeIssues related to @typescript-eslint/typescript-estree

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions