Fork-ts-checker-webpack-plugin: cannot find module 'tslint'

Created on 1 Mar 2019  路  1Comment  路  Source: TypeStrong/fork-ts-checker-webpack-plugin

Hey guys, thank's so much for this plugin. Can really see this speeding up my development process.

However I'm stuck at trying to supply tslint rules.

Here's my setup:

  • Folder structure
    image

  • webpack.common.js
    image

tsconfig.json works like a charm and all type errors/warnings are handled as expected by the plugin.
However for tslint.json i get the following error.

  • Console
    image

I also tried doing
image
But it doesn't work.

I'm sure this is just some silly config problem on my site but I can't get it to work. It doesn't matter how I alter the settings in the tslint.json. I even tried it with just an empty object.

Any idea on this?

Most helpful comment

Ha, writing issues always directly leads to solving the problem oneself i guess.

For anyone stumbling upon this, I had tslint installed globally on my machine but not in this specific package. After installing it in this the package (npm install tslint -D) it worked.

>All comments

Ha, writing issues always directly leads to solving the problem oneself i guess.

For anyone stumbling upon this, I had tslint installed globally on my machine but not in this specific package. After installing it in this the package (npm install tslint -D) it worked.

Was this page helpful?
0 / 5 - 0 ratings