Skip to content

vite hmr fail due to missing file in dist folder #8374

@lior-amsalem

Description

@lior-amsalem

Describe the bug

note: we are talking about 2 projects. main project and ui library project.

developer works on main project of company. and uses company npm scopped lib configure vite project. after few edits of one of the components button.tsx vite's HMR fail with an error

repo, to reproduce:
https://github.com/lior-a/vite_issue/tree/master/hmr_fail_due_to_missing_file

error:
image

  • could be related to file system race condition or to vite-dts plugin

Reproduction

https://github.com/lior-a/vite_issue/tree/master/hmr_fail_due_to_missing_file

System Info

repo, to reproduce:
https://github.com/lior-a/vite_issue/tree/master/hmr_fail_due_to_missing_file

error:
![image](https://user-images.githubusercontent.com/10909088/170839097-89054687-895a-4ccb-aa3a-a706cab91d07.png)

Used Package Manager

npm

Logs

No response

Validations

Metadata

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