hot module reload not working?
could you please help me understand why hmr is not working? I couldn't figure it out.
https://github.com/Cuhadari-Deniz/t-start-mono
i thought it had todo with the site being statically rendered so i tried
ssr: false
but had no luck. And in the html source code i can see global hooks that are looking like they are there for the hot module reload ... but nothing gets updated.
I have to manually refresh my browser every time.
I would really appreciate your help, thank you! ๐
GitHub
GitHub - Cuhadari-Deniz/t-start-mono
Contribute to Cuhadari-Deniz/t-start-mono development by creating an account on GitHub.
8 Replies
fascinating-indigoโข3w ago
since this is a monorepo issue, maybe @Nicolas Beaussart has an idea?
fascinating-indigoโข3w ago
Dosn't seems to use an internal lib, but the repo is using rolldown vite, could that be linked @Manuel Schiller ?
fascinating-indigoโข3w ago
maybe!
@Dari does it work with normal vite?
rival-blackOPโข3w ago
I also had issues with a plain vite project (no monorepo, no rolldown vite)
I'll quickly try to reproduce it.
Thanks for investigating ๐
rival-blackOPโข3w ago
Okay so a basic setup works fine (just vite - no monorepo).
I managed to narrow the issue down a little. It's not working the way i set up turborepo. (Not sure if im doing it wrong or if it indeed is not working)
here is a new minimal repo: https://github.com/Cuhadari-Deniz/t-turbo-vite
it uses:
GitHub
GitHub - Cuhadari-Deniz/t-turbo-vite
Contribute to Cuhadari-Deniz/t-turbo-vite development by creating an account on GitHub.
rival-blackOPโข3w ago
wth ... now it works in the vite turborepo case ๐คจ
I didn't change anything
and its broken again
fascinating-indigoโข2w ago
i just tried it out:
- git clone
- pnpm i
- pnpm dev
then modify index.tsx
it updates without the need to refresh
fascinating-indigoโข2w ago
Same here!