fork-ts-checker-webpack-plugin icon indicating copy to clipboard operation
fork-ts-checker-webpack-plugin copied to clipboard

Changes to monorepo packages are not updated after the initial launch

Open ferm10n opened this issue 1 year ago • 5 comments

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 do yarn dev
  • make changes to examples/ts-loader-monorepo/packages/util/src/index.ts, changing ProbablyANumber to number or string
  • 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

ferm10n avatar Jan 16 '23 18:01 ferm10n

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?

ferm10n avatar Jan 16 '23 19:01 ferm10n

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.

ferm10n avatar Jan 16 '23 19:01 ferm10n

Having the same issue with types in monorepo changing but the fork-ts-checker-webpack-plugin is not picking up the change.

bnussman-akamai avatar Feb 03 '23 18:02 bnussman-akamai

Same problom, does any update on this?

xiaosen7 avatar Sep 12 '23 06:09 xiaosen7

It's super annoying having to restart Webpack over and over again due to this. Any updates?

levrik avatar Jun 04 '24 11:06 levrik