-
Notifications
You must be signed in to change notification settings - Fork 47
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
Watch mode not working in Firefox since updating rspack to 1.1.0 #2121
Comments
Just letting you know that I cannot reproduce this and and everything is working fine on my end (macOS 14.6, Node v20 and v23). |
Thanks! I guess it might be a Windows issue then. I can reproduce it on two different computers but they're both Windows. |
I really need to fix this before the next release since it's making it really hard to test anything at the moment. So far I've determined that dropping I'm not sure if it's related but I'm seeing constant reloads in Chrome too. If I can build |
Dug into this a bit more today. I've been trying to build and bisect locally but I'm having a hard time getting A couple of things I have worked out however:
|
I notice that rspack is using pkg.pr.new but trying to use the packages from web-infra-dev/rspack#8325 (comment) (where the pkg.pr.new setup was restored) gives me
|
I actually met same problem in our windows CI and the cause maybe related to docker or antivirus apps which may add fs lock to generated file(which is actually very normal) |
sorry we temporarily take pkg.pr.new down because the recent attack on rspack, we will fix it when we make sure we fix all potential attack security about issue comment triggered action. |
I tried this approach:
But I just get:
I guess it might work with Node 23 but I'm currently on Node 20.
Ah, interesting. I think the issue in this case might be because our I'd still like to get a local build to run because rspack seems to be rebuilding more frequently than I'd expect and I'd like to debug why in case I have it misconfigured. |
Looks like it works with Node 23! |
Unfortunately I haven't been able to reproduce the problem in Node 23 yet. In Node 22 it seems to reproduce less frequently but I also got a slightly different error when it did reproduce:
|
I think if I switch to Node 22 and re-install all the dependencies it doesn't break? For now, switching to Node 22 seems like a useful step anyway. |
try run this command in your repo other than in rspack repo(it's actually a tricky bug in dealing with esm config, which i will fix soon) node rspack/packages/rspack-cli/bin/rspack.js -c rspack.config.js |
Thank you so much! That worked and I was finally able to bisect the regression. It turns out it comes from changeset 1161016 ( |
en, that's weird, @ahabhgk any idea? |
Could you try set |
Thanks @ahabhgk! I tried the following:
So it looks like some sort of bad interaction between Changeset 1161016 and Node < 22 and (I also tried removing the multiple compile targets (i.e. exporting only a single object from |
For now I've switched CI to Node 22 in #2191. |
After running
pnpm start:firefox
it starts downloading the dictionaries and then at some pointrspack
bails out with an error like the following:pnpm start:chrome
seems to work.After running
git bisect
the culprit appears to be this changeset.The closest issue I can find in
rspack
is web-infra-dev/rspack#8383Not sure how to debug this yet but if we can't work it out soon, we might need to temporarily downgrade rspack to 1.0.x.
The text was updated successfully, but these errors were encountered: