Skip to content

🐛 BUG: [c3] new projects are almost always scaffolded with incorrect compatibility dates, resulting in noisy warnings #2385

@IgorMinar

Description

@IgorMinar

What version of Wrangler are you using?

2.6.2

What operating system are you using?

Mac

Describe the Bug

In a brand new project I get the following warning:

 wrangler dev --experimental-local                                                                     
 ⛅️ wrangler 2.6.2 
-------------------
[mf:wrn] The latest compatibility date supported by the installed Cloudflare Workers Runtime is "2022-11-11",
but you've requested "2022-12-10". Falling back to "2022-11-11"...

While this warning is non-fatal, it adds to noise that is visible each time a wrangler dev command runs. Could we avoid scaffolding projects with wrong compat date in some way?

For example we could try to fetch the latest compat date when scaffolding new project, and fall back to a version hardcoded into wrangler (which we would need to bump when new compat dates are available).

Metadata

Metadata

Labels

bugSomething that isn't workingc3Relating to C3 (create-cloudflare) package

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions