Incorrect bindings
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
Research direction
Start by reproducing the deployment and inspecting the generated dist/ssr/wrangler.json, especially the database binding and the void/ws Durable Object binding. Trace the build configuration that emits these entries and check how migration entries are generated. Done means a project configured with PostgreSQL no longer receives a D1 database_id, and the Durable Object binding has the required migration configuration so wrangler deploy succeeds.
Written by the indexing model from the issue text.
Description
I've encountered a few issues with bindings when deploying my Void project to Cloudflare:
-
Even with
"database": "pg"set, the build still emits a D1 DB binding (database_id: "local") intodist/ssr/wrangler.json, so wrangler deploy fails withbinding DB of type d1 must have a valid database_id [code: 10021]. -
My build emits DO bindings for the
void/ws, but never writes the migration entry at all, so wrangler deploy fails with:Cannot create binding for class 'WsProjectProjectIdWs' because it is not currently configured to implement Durable Objects [code: 10061]
- Dominant language
- TypeScript
- Stars
- 149
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from void-sdk/void
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
Difficulty 3/5 1-2 days Newbie friendliness 57/100
Similar issues
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Mend: dependency security vulnerability untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 70/100