Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

"Cannot use 'in' operator" error when tsconfig file doesn't exist with type checking on #1578

Closed
JoshuaKGoldberg opened this issue Sep 27, 2016 · 0 comments

Comments

@JoshuaKGoldberg
Copy link
Contributor

Bug Report

  • TSLint version: 3.15.1
  • TypeScript version: 2.0.3
  • Running TSLint via: gulp-tslint

TypeScript code being linted

(file does not exist)

Actual behavior

stream.js:74
      throw er; // Unhandled stream error in pipe.
      ^

TypeError: Cannot use 'in' operator to search for 'resolvedModules' in undefined
    at Linter.lint (C:\Code\bellevuejs-linting\5. Advanced TSLint Rule\node_modules\tslint\lib\tslint.js:41:40)

Expected behavior

Some sort of error saying "hey, the file doesn't exist!"

Although the tslint recommendation is to only lint compiling code, it's common in projects such as gulp-tslint to lint during build.

@JoshuaKGoldberg JoshuaKGoldberg changed the title "Cannot use 'in' operator" error when tsconfig file doesn't exist "Cannot use 'in' operator" error when tsconfig file doesn't exist with type checking on Sep 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant