[Start]: $RefreshSig$ is not a function
Describe the bug
This might not be a bug related to the start directly, but somehow it works fine in vite directly.
the problem that some file is not compliant with fast refresh and therefore it invalidates
it breaks in the start starter but works fine in vite.
check the repository for a reproduction
Your Example Website or App
https://github.com/omarkhatibco/start-test
Steps to Reproduce the Bug or Issue
run bun install and then bun dev
check both urls http://localhost:3000/ & http://localhost:5174/
you can see that start url is failing.
Expected behavior
it should work fine
Screenshots or Videos
No response
Platform
- OS: macos
- Browser: Chrome
- Version: lastest
Additional context
No response
Trying this out, I'm not getting any errors thrown in either "app" in the client or the server.
Following the reproduction steps, I ran the bun dev command and had both URLs opened. In each project, I made a change and observed the following.
- In the vite project, on the client, an HMR update was performed with the updated content.
- In the Start project, a page reload occurred with the updated content.
@tannerlinsley is this expected behaviour (given that this is SSR)?
Speaking with Tanner, the HMR not replacing the modules and instead performing a full reload is indeed a bug.
@SeanCassiere btw, I discovered that if you update something inside the monorepo library, the dev server will crash
Just had the same error. Two Start projects on a monorepo, same start, router and react versions. One of them crashes when using the useQuery hook with a useServerFn, the other works just fine. How can I help?
any updates on this ?
getting same issue when trying to use useMatches for a crumb based component in my app
The HMR fixes for Start have been merged in and most (if not all) of the HMR bugs should be resolved with the https://github.com/TanStack/router/releases/tag/v1.99.3.
If more, HMR bugs popup, please open a new Issue on github so that it can be tracked separately.