Updated to TS 2.4. Webpack no longer sees my @types

I recently upgraded to TSC 2.4

yarn add typescript@2.4

      

When I run webpack

, I get a lot of errors (which weren't in version 2.3) for missing modules, which @types

in mine have package.json

:

ERROR in /home/rick/code/farmbot/frontend/tsconfig.json
error TS2688: Cannot find type definition file for 'node'.

      

The example above is missing input for "node", but this also happens for jest, mqtt, handlebars and many more.

Has the management of type definitions changed in TS 2.4?

More info Restarting Webpack didn't help.

+3


source to share


1 answer


Per https://github.com/Microsoft/TypeScript/issues/16772#issuecomment-311761959 , this is a ts-loader issue. Upgrading to ts-loader@2.2.1 should fix the problem.



+2


source







All Articles