You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
confusion around new_module_registry compatibility flag and date usage #7606
Was trying out the new_module_registry flag announced in this blog post and noticed a confusing behavior).
I have a wrangler.toml file as such
name = "cloudflare-workers-demo"pages_build_output_dir = "./public"compatibility_flags = ["new_module_registry"]
But when I deploy, I get this message
Error: Failed to publish your Function. Got error: compatibility_flags cannot be specified without a compatibility_date
However, the blog post states to omit the compatibility_date
It doesn't have a default on date yet, so it won't turn on automatically for your Worker, old or new, no matter what compatibility date it's using. You will need to add the flag explicitly.
Interestingly, I managed to get one preview build to pass after having deleted the wrangler.toml file which was confusing because my example API using import.meta.url worked?
Activity
thescientist13 commentedon Oct 3, 2026
Ok, it looks like I was just able to add a compatibility_date and a production build passed and my test API using
import.meta.urlworked?That may be worth clarifying in the blog post if a date is still needed. (or the docs, but i can't read them yet 😊)
thescientist13 commentedon Oct 3, 2026
Ah, I guess this is this is somewhat covered / cleared up by the docs I suppose. Looks like it is always needed, and I read the blog post example too literally? 😅
https://developers.cloudflare.com/workers/configuration/compatibility-dates/#setting-compatibility-date