You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i have been using old version of this plugin for quite a long time, recently i tried to upgrade to the latest and it doesn't compile my typescript files anymore. probably due to the .d.ts that is being shipped along with it now... Here is how im using it:
tsc --lib esnext webpack/webpack.*.ts
node_modules/fork-ts-checker-webpack-plugin/lib/types/NormalizedMessage.d.ts:2:30 - error TS2307: Cannot find module 'tslint'.
2 import tslintTypes = require('tslint');
~~~~~~~~
webpack/webpack.common.ts:8:45 - error TS2497: Module '"G:/Code/demo/node_modules/fork-ts-checker-webpack-plugin/lib/types/index"' r
esolves to a non-module entity and cannot be imported using this construct.
8 import * as ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] prestart: `tsc --lib esnext webpack/webpack.*.ts`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] prestart script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Rafael\AppData\Roaming\npm-cache\_logs\2018-10-03T11_37_04_173Z-debug.log
so once i forcibily install tslint (which im not using) and change
import * as ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin'
@johnnyreilly i made a PR that fixes the import part.. but the TSLINT i wont be able to fix because the types of it are actually being used, only the lib itself is loaded on demand... there is no way to conditionally load that types in ts atm...
Hi, i have been using old version of this plugin for quite a long time, recently i tried to upgrade to the latest and it doesn't compile my typescript files anymore. probably due to the .d.ts that is being shipped along with it now... Here is how im using it:
webpack.config.ts
error
so once i forcibily install tslint (which im not using) and change
to
then so im able to "compile" my .ts config files...
anyways is it possible to change the auto generated .d.ts files to allow it to be imported as:
and remove the forced dependency on tslint? or at least dont push the .d.ts to npm, perhaps publish to
@types/fork-ts-checker-webpack-plugin
?The text was updated successfully, but these errors were encountered: