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.

Error: Cannot find module 'tslint/lib/lint'

See original GitHub issue

With the latest update I am getting the following errors upon running npm start:

ERROR in ./src/vendor.ts
Module build failed: Error: Cannot find module 'tslint/lib/lint'
    at Function.Module._resolveFilename (module.js:327:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:355:17)
    at require (internal/module.js:13:17)
    at Object.<anonymous> (<path-to-app>/node_modules/tslint-loader/formatters/customFormatter.js:1:12)
    at Module._compile (module.js:399:26)
    at Object.Module._extensions..js (module.js:406:10)
    at Module.load (module.js:345:32)
    at Function.Module._load (module.js:302:12)
    at Module.require (module.js:355:17)
 @ multi vendor

ERROR in ./src/bootstrap.ts
Module build failed: Error: Cannot find module 'tslint/lib/lint'
    at Function.Module._resolveFilename (module.js:327:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:355:17)
    at require (internal/module.js:13:17)
    at Object.<anonymous> (<path-to-app>/node_modules/tslint-loader/formatters/customFormatter.js:1:12)
    at Module._compile (module.js:399:26)
    at Object.Module._extensions..js (module.js:406:10)
    at Module.load (module.js:345:32)
    at Function.Module._load (module.js:302:12)
    at Module.require (module.js:355:17)
 @ multi app

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
blakeembreycommented, Dec 14, 2015

@mastertinner Try npm install tslint.

@Emnalyeriar @MischaZed Do a typings install.

0reactions
SatishMHiremathcommented, Mar 6, 2018

Codelyzer

A set of tslint rules for static code analysis of Angular TypeScript projects.

You can run the static code analyzer over web apps, NativeScript, Ionic, etc.

Angular CLI Angular CLI has support for codelyzer.Run the below npm command for tslint

npm i tslint-angular

Read more comments on GitHub >

github_iconTop Results From Across the Web

tslint update error "Cannot find module 'tslint/lib/lint'"
I found the issue: codelyzer was out of date. I updated it from 0.0.26 to 2.1.1 and now tslint is successfully linting our...
Read more >
'Cannot find module 'tslint/lib/lint'' #165 - mgechev/codelyzer
A set of tslint rules for static code analysis of Angular TypeScript projects. You can run the static code analyzer over web apps,...
Read more >
Angular – tslint update error “Cannot find module 'tslint/lib/lint'”
Now we receive the following tslint error at design time (in VSCode Output terminal). Cannot find module 'tslint/lib/lint' while validating. I've attempted to ......
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
In my case, I got it like this "Module not found: Error: Can't resolve 'react-icons/fa' in 'C:\Users\user\Desktop\Projects\Address Locator\ ...
Read more >
ServiceNow Community servicenow community
Error : Cannot find module '. ... am trying to setup the CLI for component development and get the infamous error "keytar module"...
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