zsmooth
CDCloudflare Developers
•Created by Magnum🅱 on 10/1/2024 in #pages-help
Deployment failed! Got error: Your Worker exceeded the size limit of 1 MiB
npm run build
will tell you exactly how big your worker is6 replies
CDCloudflare Developers
•Created by zsmooth on 10/2/2024 in #workers-help
DurableObjectNamespace losing its type?
10 replies
CDCloudflare Developers
•Created by zsmooth on 10/2/2024 in #workers-help
DurableObjectNamespace losing its type?
never mind, still doesn't work
10 replies
CDCloudflare Developers
•Created by zsmooth on 10/2/2024 in #workers-help
DurableObjectNamespace losing its type?
i think since it comes after the worker-configuration in my tsconfig, it loads after and augments
Env
with the correct type10 replies
CDCloudflare Developers
•Created by zsmooth on 10/2/2024 in #workers-help
DurableObjectNamespace losing its type?
for now, i just added a
env.d.ts
file, and put this in it: 10 replies
CDCloudflare Developers
•Created by zsmooth on 10/2/2024 in #workers-help
DurableObjectNamespace losing its type?
also, this is
include
from my tsconfig: 10 replies
CDCloudflare Developers
•Created by zsmooth on 10/2/2024 in #workers-help
DurableObjectNamespace losing its type?
if i manually change it to: then it works, but this file is automatically generated, and the next time i run
wrangler types
it would get blown away10 replies
CDCloudflare Developers
•Created by zsmooth on 10/2/2024 in #workers-help
DurableObjectNamespace losing its type?
It's in my project root. (I'm in a remix app). The
./build/index
path is correct relative to the file10 replies
CDCloudflare Developers
•Created by Brod on 9/6/2024 in #workers-help
ERROR Could not resolve "cloudflare:workers"
eslint doesn't know how to resolve
cloudflare:workers
, so it complains about import { DurableObject } from "cloudflare:workers";
. I just shut it off though and things seem to work fine: 15 replies
CDCloudflare Developers
•Created by Brod on 9/6/2024 in #workers-help
ERROR Could not resolve "cloudflare:workers"
How do we satisfy eslint with this import? Is there a cloudflare template that has eslint set up that demonstrates?
15 replies