Are there example repos of Durable

Are there example repos of Durable Object RPC + vitest integration? I'm running into trouble with it throwing The receiving Durable Object does not support RPC... when running tests attached to it. Repro here: https://github.com/its-jman/workers-types-repro
3 Replies
kevin
kevin•7mo ago
Hey @jman, did you ever find a solution to 👇 ?
The receiving Durable Object does not support RPC
I'm hitting this too in a bare bones setup, w/ vitest-pool-workers, and the correct compat dates/flags...
jman
jmanOP•7mo ago
I found it pretty fiddly to get working, but I added details in the threads below that message, and some following issues in later messages: https://discord.com/channels/595317990191398933/779390076219686943/1229204177469702174 https://discord.com/channels/595317990191398933/779390076219686943/1229228850701930539
kevin
kevin•7mo ago
Hey @jman , looks like https://github.com/cloudflare/workers-sdk/pull/5916 / https://github.com/cloudflare/workers-sdk/pull/5932 fixes this (tip from Cloudflare friends) I confirmed this with the vitest-pool-workers prerelease
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9305562558/npm-package-cloudflare-vitest-pool-workers-5932
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9305562558/npm-package-cloudflare-vitest-pool-workers-5932
Want results from more Discord servers?
Add your server