fork-ts-checker-webpack-plugin tried to access typescript, but it isn't declared in its dependencies #497
Closed
Description
Current behavior
When using fork-ts-checker-webpack-plugin as a dependency with strict package managers such as yarn berry, the following warning/error is issued:
(node:13248) [MODULE_NOT_FOUND] Error: fork-ts-checker-webpack-plugin tried to access typescript, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
This is actually due to the fact that fork-ts-checker-webpack-plugin does import 'typescript' but does not declare it in its peerDependencies.
Expected behavior
fork-ts-checker-webpack-plugin package.json should explicitly add typescript
as a peer dependency.
Environment
- fork-ts-checker-webpack-plugin: [5.0.14]
- typescript: [3.9.7]
- yarn: 2.1.1