molmorg
04/22/2021, 2:08 AMmolmorg
04/22/2021, 2:31 AMexport type { LogTopic} from "./LogTopic"
But no joy... "Cannot create binding for class LogTopic that is not exported by the script"
jmshal
04/22/2021, 6:10 AMdoublebeat
04/22/2021, 6:55 AM1.16
I can't call --new-class
in wrangler publish
?vans163
04/22/2021, 8:43 AMttraenkler
04/22/2021, 9:11 AMUnsmart | Tech debt
04/22/2021, 9:33 AM@cloudflare/workers-types
ttraenkler
04/22/2021, 10:16 AMdbingel
04/22/2021, 11:04 AMvans163
04/22/2021, 1:05 PMthis
pointers. the this
pointer inside a lambda/anonfunc seems to be thrown off.vans163
04/22/2021, 1:20 PMvans163
04/22/2021, 1:20 PMvans163
04/22/2021, 1:21 PMkenton
04/22/2021, 5:56 PMkenton
04/22/2021, 5:57 PMkenton
04/22/2021, 5:59 PMidFromName(name)
, you get an ID back, and the system doesn't remember the original name anywhere... it's basically a hash.kenton
04/22/2021, 6:20 PMmolmorg
04/22/2021, 6:22 PMexport default g;
export { h as LogTopic };
Where h
is the Durable Object class. But still getting that error: "Cannot create binding for class LogTopic that is not exported by the script"
any ideas?matt
04/22/2021, 6:45 PMwrangler.toml
right? that syntax looks correctmatt
04/22/2021, 6:45 PMvans163
04/22/2021, 6:50 PMvans163
04/22/2021, 6:50 PMmolmorg
04/22/2021, 6:52 PMmatt
04/22/2021, 6:52 PMmolmorg
04/22/2021, 6:53 PMmolmorg
04/22/2021, 6:54 PMmatt
04/22/2021, 6:59 PMmain
should be just ./index.mjs
matt
04/22/2021, 6:59 PMupload.dir
(which defaults to dist)matt
04/22/2021, 7:00 PMmatt
04/22/2021, 7:01 PM