-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrangler 3.11.0 breaks Remix's HMR #7616
Comments
I experienced the same problem. Wrangler 3.13.1 was used. After downgrading wrangler to 3.10.1 HMR started working again. |
Can also confirm 3.13.1 doesn't work and 3.10.1 does. Interestingly, this fix was included in 3.11.0 specifically for Remix. |
@mrbbot Any idea if this issue is related to your debugging changes? |
Hey! 👋 Just did a bisect between remix/packages/remix-dev/devServer_unstable/index.ts Lines 141 to 151 in 1168363
In the cloudflare-pages template, this is logged as soon as the worker starts up:remix/templates/cloudflare-pages/server.ts Lines 5 to 7 in 1168363
I'm guessing with cloudflare/workers-sdk#4072, V8's log buffer is cleared before we request log events from the inspector. cloudflare/workers-sdk#4235 should fix this issue. 👍 |
Wrangler When I use wrangler I've tried patching the |
In the first 3.15 installation I also get such error, then I have read above that 3.10 works, still wasn't working for me, so I installed the 3.14 - but there the HMR does not trigger but no errors in the console, so again, installed 3.15 and HMR works fine, except an error in the log:
Deleted node_modules and package.lock.json, works fine. |
The bug is present in current install of remix cloudflare-pages template (it install
For those who just want a simple fix, you can force the
For the time being, couldn't be preferable to change current remix template and force |
Also seeing @mrbbot Really appreciate the fix on the wrangler side last time. Given this seems to be a new issue in |
@KrisBraun Hey! Yep, would you be able to open an issue in |
Thanks. Logged as cloudflare/workers-sdk#4318. |
For those following this thread, I've replied with more details here: cloudflare/workers-sdk#4318 (comment). TL;DR: we're working on a change that should fix this issue, but recommend you pin |
I believe this was resolved when wrangler@3.19.0 was released. |
What version of Remix are you using?
2.0.1
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
Create an app using the the Cloudflare Pages template:
Start the dev server, change something in
routes/_index.tsx
and notice HMR doesn't work (no error in the console). That's becausewrangler
3.11.0
is used. Downgrade to wrangler3.10.1
and HMR works again.What's could be happening here? Is it a wrangler issue (couldn't find anything related) or does it have to do with Remix's HMR implementation?
Expected Behavior
HMR should work.
Actual Behavior
HMR doesn't work.
The text was updated successfully, but these errors were encountered: