TSLint error after installing the module
See original GitHub issueAfter installing the module my TSLint (preconfigured by the angular-cli) fails with the following error:
> tslint "src/**/*.ts" --project src/tsconfig.json --type-check && tslint "e2e/**/*.ts" --project e2e/tsconfig.json
/Users/emin93/WebstormProjects/my-project/node_modules/tslint/lib/runner.js:91
throw new Error(messages.join("\n"));
^
Error: Error at /Users/emin93/WebstormProjects/my-project/node_modules/angular2-hotkeys/src/hotkeys.directive.d.ts:1:1: Cannot find type definition file for 'es6-shim'.
at Runner.run (/Users/emin93/WebstormProjects/my-project/node_modules/tslint/lib/runner.js:91:27)
at Object.<anonymous> (/Users/emin93/WebstormProjects/my-project/node_modules/tslint/lib/tslint-cli.js:138:6)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/emin93/WebstormProjects/my-project/node_modules/tslint/bin/tslint:3:1)
The angular2-hotkeys module has @types/es6-shim
defined in the package.json, so it should work. I also tried reinstalling the node modules (rm -rf node_modules && npm install
) but it didn’t help.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Error: Cannot find module 'tslint/lib/lint' when trying to extend ...
This is what happens when we run our local tslint with that configuration. > node_modules\.bin\tslint --config .\tslint.json --project .\ ...
Read more >ng update error message: Cannot find module 'tslint'. #14555
After installing tslint, it does not crash anymore, but our environment does not make use of tslint and it doesn't seem to be...
Read more >Cannot find module '@angular/core' error | bobbyhadz
To solve the error "Cannot find module '@angular/core'", make sure you have installed all dependencies by running the npm install command, set the...
Read more >TSLint (deprecated) - Visual Studio Marketplace
When you have installed tslint globally using npm install -g then you can get hit by a performance issue in npm. The command...
Read more >How to deal with the TSLint error "A project without tags ...
Have you ever faced the following lint error in your Nx monorepo: ... By default, the nx-enforce-module-boundaries TSLint rule in nx.json ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fix has been published. Sorry about the delay!
Should be fixed by PR #32 . Already merged, but needs to be published to npm.