You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What package manager are you using / does the bug impact?
Yarn v1
What operating system are you using?
Mac
Describe the Bug
HMR is not working as expected and performs full refresh of app and it looses it's state if you modify file in package that is both imported in:
_app.tsx
index.tsx
I've started to encounter this bug in some of my shared Layouts that I had and thought maybe I have some cyclic dependencies but I could also reproduce it on sample repo.
Expected Behavior
It should not perform full refresh and keep it's state.
To Reproduce
Open Console
Go to Button.tsx in ui package, modify eg. Button Text
pacxiu
changed the title
[turborepo]
[turborepo] HMR lost if you import shared ui package inside _app
Apr 25, 2023
pacxiu
changed the title
[turborepo] HMR lost if you import shared ui package inside _app
[turborepo] HMR lost if you import shared ui package inside _app and index files
Apr 25, 2023
Hi! Thanks for taking the time to open an issue here. I don't believe this is an issue with turborepo or turbopack since running the next in dev mode directly via yarn causes the same issue, and you have not opted-in to using turbopack. @vercel/web-tooling could anyone weigh in on this example and confirm that that is the case?
My assumption so far is that this is an issue with transpilePackages, or another case of this issue vercel/next.js#35567
Hi, @pacxiu, I think you are best off opening this repro with https://github.com/vercel/next.js, since I don't believe this is a turbo - specific issue. I am closing this for now, thanks!
What version of Turborepo are you using?
1.9.3
What package manager are you using / does the bug impact?
Yarn v1
What operating system are you using?
Mac
Describe the Bug
HMR is not working as expected and performs full refresh of app and it looses it's state if you modify file in package that is both imported in:
I've started to encounter this bug in some of my shared Layouts that I had and thought maybe I have some cyclic dependencies but I could also reproduce it on sample repo.
Expected Behavior
It should not perform full refresh and keep it's state.
To Reproduce
Button.tsx
inui
package, modify eg. Button TextReproduction Repo
https://github.com/clumsier/turborepo-hmr-bug
The text was updated successfully, but these errors were encountered: