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
Since version 3 I can no longer use type definitions from @types packages.
For example I get this error from @types/webpack:
/Users/rasmus/Development/project/node_modules/@types/webpack/index.d.ts
[tsl] ERROR in /Users/rasmus/Development/project/node_modules/@types/webpack/index.d.ts(14,26)
TS7016: Could not find a declaration file for module 'tapable'. '/Users/rasmus/Development/project/node_modules/tapable/lib/Tapable.js' implicitly has an 'any' type.
Try `npm install @types/tapable` if it exists or add a new declaration (.d.ts) file containing `declare module 'tapable';`
@types/tapable is installed as a dependency of @types/webpack and its files looks good but I have tried with explicitly installing it as well with the same result.
It is not an error with the @types/webpack package because if I work around that one I get a similar error from @types/uglify. It seems like any @types package that import other modules is broken.
If I compile using tsc or ts-loader 2.3.7 there are no errors, neither does vscode report any errors.
My webpack configuration is super simple:
Since version 3 I can no longer use type definitions from
@types
packages.For example I get this error from
@types/webpack
:@types/tapable
is installed as a dependency of@types/webpack
and its files looks good but I have tried with explicitly installing it as well with the same result.It is not an error with the
@types/webpack
package because if I work around that one I get a similar error from@types/uglify
. It seems like any@types
package that import other modules is broken.If I compile using tsc or ts-loader 2.3.7 there are no errors, neither does vscode report any errors.
My webpack configuration is super simple:
The text was updated successfully, but these errors were encountered: