question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TSLint error after installing the module

See original GitHub issue

After 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-shimdefined 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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
brtnshrdrcommented, Feb 7, 2017

Fix has been published. Sorry about the delay!

1reaction
isaacplmanncommented, Jan 31, 2017

Should be fixed by PR #32 . Already merged, but needs to be published to npm.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found