Open
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
.
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.
- yarn
- yarn dev --filter=pie-storybook
- yarn watch --filter=pie-modal
- make a change to index.ts and save - nothing should break
- make another change to index.ts and save - nothing should break
- make a change to defs.ts (or just save the file again with no changes) - error should occur