PikaPika
04/12/2021, 2:27 PMtheGagne
04/12/2021, 2:59 PM"message": "Uncaught ReferenceError: withDurables is not defined\n at line 1\n at line 1 in r\n at line 1\n at line 1\n"
theGagne
04/12/2021, 3:00 PMKevin W - Itty
04/12/2021, 3:18 PMimport { withDurables } from 'itty-durable'
Kevin W - Itty
04/12/2021, 3:18 PMKevin W - Itty
04/12/2021, 3:20 PMKevin W - Itty
04/12/2021, 3:21 PMKevin W - Itty
04/12/2021, 3:22 PMmehdiiii
04/12/2021, 3:25 PMmehdiiii
04/12/2021, 3:27 PMKevin W - Itty
04/12/2021, 3:31 PMKevin W - Itty
04/12/2021, 3:31 PMmatt
04/12/2021, 3:32 PMmatt
04/12/2021, 3:33 PMKevin W - Itty
04/12/2021, 3:33 PMKevin W - Itty
04/12/2021, 3:33 PMmatt
04/12/2021, 3:34 PMtheGagne
04/12/2021, 3:34 PM"message": "No event handlers were registered. This script does nothing.\n"
mehdiiii
04/12/2021, 3:34 PMnightvisi0n
04/12/2021, 3:52 PMfetch
not being passed anything in it's env
argument. I `JSON.stringify`'ed it for debugging purposes and it's indeed just an empty object. Any ideas what could be wrong?nightvisi0n
04/12/2021, 3:54 PMfetch
, like here: https://github.com/cloudflare/durable-objects-rollup-esm/blob/master/src/index.mjs#L8matt
04/12/2021, 3:58 PMnightvisi0n
04/12/2021, 4:00 PMdurable_objects
binding in my wrangler.toml
and would have expected to be able to access it via env
nightvisi0n
04/12/2021, 4:00 PMmatt
04/12/2021, 4:13 PMnightvisi0n
04/12/2021, 4:13 PMmatt
04/12/2021, 4:14 PM[durable_objects]
section is not inherited -- you'll need to provide it for each environment as a subtable of the environment, like [env.staging.durable_objects]
nightvisi0n
04/12/2021, 4:15 PMtheGagne
04/12/2021, 6:17 PMtheGagne
04/12/2021, 6:18 PM