Wrangler Automatic resource provisioning not working with vite
I see the news that wrangler now can auto provision resources without specifying resource id in the config file, so I updated wrangler to 4.45.0, and put D1 binding in my wrangler.jsonc
but when I try to run dev server or to deploy I got this error
1 Reply
Thanks for reporting this! I've just reproduced it with a standard react + vite plugin
create cloudflare app with some bindings without resources and I get the same thing as you. I'll bring it up with the team next week š
Hey @Zephyrrr - we're aware we have a bug in this where sometimes the flag for the auto provision is not being passed, we're going to try and get that in this week, I'll let you know when that rolls around.
Another note on this is that we've decided intentionally to not support 'remote' flagged bindings being created automatically, as our thinking is that you would only use 'remote' if you cared about the data, and wanted to share it, and by its nature not having an ID conflicts with that. However, we are open to discussion on this, so if you have an interesting use case we would love to hear it!
Hey @Zephyrrr - update your wrangler version in this project and it should be fixed š