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.

ng-add fails if it can't find tslint

See original GitHub issue

Describe the problem

When performaing ng add @fortawesome/angular-fontawesome@0.6.0 it asked for what font icons I would like:

Installing packages for tooling via npm.
Installed packages for tooling via npm.
? Choose Font Awesome icon packages you would like to use: Free Solid Icons, Free Regular Icons, Free Brands Icons
UPDATE package.json (3013 bytes)
UPDATE src/app/app.module.ts (11139 bytes)

But afterwards failed with: Cannot find module 'tslint'

What did you expect?

It to succeed without any errors. I do not use tslint.

Reproducible test case

Unable to produce a test case on stackblitz, requires command line.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
devoto13commented, Jul 16, 2020

Sounds reasonable to me. Feel like submitting a PR?

The fix is to wrap this line into “tslint is installed” check.

0reactions
devoto13commented, Jul 17, 2020

I don’t think there is an easy way to test it, so it is fine without test.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find tslint.json when running ng g @angular-eslint ...
Im running the command from the myProject folder and getting that error. I assume its because my tslint.json is in the src folder...
Read more >
Can't run ng lint on my angular-cli project - Stack Overflow
When I run ng lint , I get the yellow chalk error No lint config(s) found. If this is not intended, run "ng...
Read more >
enable tslint in vscode - YouTube
enable tslint in vscodePreRequiste:Have typescript installed. npm install typescriptInstall tslint ... Your browser can't play this video.
Read more >
TSLint - Visual Studio Marketplace
If you are not seeing TSLint working in your project—such as TSLint errors not showing up—you can follow these steps to investigate what...
Read more >
TSLint command-line interface - Palantir Open Source
By default, TSLint looks for a configuration file named tslint.json in the directory of the file being linted and, if not found, searches...
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