Skip to content

yarn watch --filter=COMPONENT_NAME consistently fails during local development #777

Open
@jamieomaguire

Description

On my Macbook Pro I often notice that saving file changes to any file within a component package currently being served by yarn watch results in an error (images attached).

I have encountered this error for pretty much all of our components, and it appears to happen regardless of whether or not the file had any errors in it at the time of saving.

Storybook changes never result in this issue, so I am fairly confident it is specifically related to packages and perhaps a dependency.

Has anyone else encountered this? It means roughly every 2-3 file changes I have to restart yarn watch.

Screenshot 2023-09-01 at 12 07 36 Screenshot 2023-09-01 at 12 11 31

Steps to reproduce:

It seems to happen whether or not you make an actual change to the file or just save the file with no changes.

  1. yarn
  2. yarn dev --filter=pie-storybook
  3. yarn watch --filter=pie-modal
  4. make a change to index.ts and save - nothing should break
  5. make another change to index.ts and save - nothing should break
  6. make a change to defs.ts (or just save the file again with no changes) - error should occur

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions