Skip to content

Changes to monorepo packages are not updated after the initial launch #793

Open
@ferm10n

Description

@ferm10n

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions