Upgraded to TS 2.4. Webpack isn't seeing my @types anymore

265 Views Asked by At

I recently upgraded to TSC 2.4

yarn add [email protected]

When I run webpack, I get a large number of errors (that were not there in 2.3) for missing modules that have @types in my 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 a typing for "node", but it is also happening for jest, mqtt, handlebars and many others.

Has management of type definitions changed in TS 2.4?

Additional info Restarting Webpack did not help.

1

There are 1 best solutions below

0
On BEST ANSWER

Per https://github.com/Microsoft/TypeScript/issues/16772#issuecomment-311761959, this is an issue with ts-loader. Upgrading to [email protected] should resolve the issue.