Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

TSLint Error in Webstorm and VSCode #3938


User avatar
0
ajayak created

I created a new project and getting this TSLint error in Webstorm and VSCode.

TypeError: Cannot read property '1' of undefined

TypeError: Cannot read property '1' of undefined at Rule.SelectorRule [as constructor] (E:\PrimePenguin\PrimePenguin.Web\node_modules\codelyzer\selectorNameBase.js:16:25) at new Rule (E:\PrimePenguin\PrimePenguin.Web\node_modules\codelyzer\directiveSelectorRule.js:12:28) at Object.loadRules (E:\PrimePenguin\PrimePenguin.Web\node_modules\tslint\lib\ruleLoader.js:47:24) at Linter.getEnabledRules (E:\PrimePenguin\PrimePenguin.Web\node_modules\tslint\lib\linter.js:197:29) at Linter.lint (E:\PrimePenguin\PrimePenguin.Web\node_modules\tslint\lib\linter.js:74:33) at TSLintPlugin.processLinting (C:\Program Files\JetBrains\WebStorm 2017.2.4\plugins\tslint\tslintLanguageService\tslint-plugin.js:76:20) at TSLintPlugin.getErrors (C:\Program Files\JetBrains\WebStorm 2017.2.4\plugins\tslint\tslintLanguageService\tslint-plugin.js:54:21) at TSLintPlugin.process (C:\Program Files\JetBrains\WebStorm 2017.2.4\plugins\tslint\tslintLanguageService\tslint-plugin.js:22:29) at TSLintPlugin.onMessage (C:\Program Files\JetBrains\WebStorm 2017.2.4\plugins\tslint\tslintLanguageService\tslint-plugin.js:40:27) at Interface.<anonymous> (C:\Program Files\JetBrains\WebStorm 2017.2.4\plugins\JavaScriptLanguage\jsLanguageServicesImpl\js-language-service.js:105:39) Process finished with exit code -1


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I think it is related to codelyzer <a class="postlink" href="https://github.com/mgechev/codelyzer/issues/277">https://github.com/mgechev/codelyzer/issues/277</a>.