-
Notifications
You must be signed in to change notification settings - Fork 334
[dev] On change, dev enters never-ending rebuild cycle #1078
Comments
Could you please share your wrangler configuration (please remove zone/account info)? and webpack if you are using it? |
Sure thing:
name = "dev"
type = "webpack"
# account_id = [removed for privacy]
workers_dev = true
[site]
bucket = "./dist"
entry-point = "./workers-site"
[env.production]
name = "production"
route = "www.my-domain.com/*" # changed for privacy
# zone_id = [removed for privacy] Also, I've just tested on a non Workers Sites worker and am not seeing this problem. |
Hmm... Wrangler might have some issues with My recommendation for now is to rename the directory you have your static assets in and we will likely solve this along with #1046 |
Your guess was right, @EverlastingBugstopper. This did the trick. Thank you :) I've also noticed that I have to restart dev for changes to be picked up, suggesting a caching issue (either in my settings or dev itself). Anything obvious I may be missing here? Would it be helpful for me to open an issue for this? |
That is interesting - the cache api itself won't be doing anything because it's not enabled (yet™️) with |
if that doesn't work then yes i'd file a new issue |
This is annoying, and having to reconfigure all my projects to not use the standard |
@EverlastingBugstopper
🐛 Bug Report
Environment
rustc -V
: n/anode -v
: v10.17.0wrangler -V
: 1.8.0-rc.0Steps to reproduce
Start workers dev (
wrangler dev
). Save the workers' entry file (e.g.index.js
).What did you expect to see?
The worker should rebuild once and then
dev
should be in watch mode.What did you see instead?
The worker rebuilds once, then again, and agin, etc... never ending.
Saving a worker's file results in a never-ending loop:
Notes (maybe relevant):
console.log
s are not showing in the terminal when the worker is called (i.e. when refreshing the page viewing the local worker's site). Can create a separate issue for this if need be.The text was updated successfully, but these errors were encountered: