I recently upgraded to TSC 2.4
yarn add typescript@2.4
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.
Per https://github.com/Microsoft/TypeScript/issues/16772#issuecomment-311761959, this is an issue with ts-loader. Upgrading to ts-loader@2.2.1 should resolve the issue.