fork-ts-checker-webpack-plugin
fork-ts-checker-webpack-plugin copied to clipboard
Changes to monorepo packages are not updated after the initial launch
Current behavior
Changes to ts or d.ts files are not detected after launching webpack dev server ~~(regression of #557)~~
Expected behavior
Changes to types should be updated dynamically across package boundaries in a monorepo.
Steps to reproduce the issue
- open either of the environments mentioned below
- in
examples/ts-loader-monorepo
doyarn dev
- make changes to
examples/ts-loader-monorepo/packages/util/src/index.ts
, changingProbablyANumber
tonumber
orstring
- notice how problem is not detected until restarting dev server
Issue reproduction repository
live in browser env: https://stackblitz.com/edit/ferm10n-fork-ts-checker-webpack-plugin-dftrye?file=examples%2Fts-loader-monorepo%2Fpackages%2Fmain%2Fsrc%2Findex.ts
Or, for cloning locally: https://github.com/ferm10n/fork-ts-checker-webpack-plugin
(It's reproducible in both environments)
Environment
- fork-ts-checker-webpack-plugin: 7.3.0
- typescript: 4.9.4
- eslint: n/a ?
- webpack: 5.75.0
- os: Both Windows 10 and Ubuntu 18.04
Just tried testing the reproduction from the original issue. It works with 7.3.0 (the version this one tested against), so that tells me this is not a regression, but a new issue I guess?
Also, I saw some similar issues here mention https://github.com/pigcan/extra-watch-webpack-plugin. I'm able to use this as a workaround.
Having the same issue with types in monorepo changing but the fork-ts-checker-webpack-plugin is not picking up the change.
Same problom, does any update on this?
It's super annoying having to restart Webpack over and over again due to this. Any updates?