T
TanStackโ€ข3w ago
rival-black

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! ๐Ÿ™‚
bun
turborepo
chrome
bun
turborepo
chrome
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
fascinating-indigoโ€ข3w ago
since this is a monorepo issue, maybe @Nicolas Beaussart has an idea?
fascinating-indigo
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
fascinating-indigoโ€ข3w ago
maybe! @Dari does it work with normal vite?
rival-black
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-black
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:
- pnpm
- turborepo
- vite
- pnpm
- turborepo
- vite
GitHub
GitHub - Cuhadari-Deniz/t-turbo-vite
Contribute to Cuhadari-Deniz/t-turbo-vite development by creating an account on GitHub.
rival-black
rival-blackOPโ€ข3w ago
wth ... now it works in the vite turborepo case ๐Ÿคจ I didn't change anything and its broken again
fascinating-indigo
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
fascinating-indigoโ€ข2w ago
Same here!

Did you find this page helpful?