You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You don't need to specify a main entry point; once you deploy your application, you must ensure that the D1 binding is passed in the dashboard. Let me know if this helps.
I had to specify an entry point because the starting issue happens trying to deploy via 'npx wrangler deploy', since I get the following error:
X [ERROR] Missing entry-point: The entry-point should be specified via the command line (e.g. wrangler deploy path/to/script) or the main config field.
And even if I put 'app/routes/index.tsx' as entry point in the command line I get the same error:
But I get the same code [code: 10021]. So which or how entry point I have to set to avoid entry point error and code 10021 error with the command 'npx wrangler deploy'?
Hi, I'm trying to deploy this project , following this tutorial too:
https://developers.cloudflare.com/d1/tutorials/build-a-staff-directory-app/
Locally works fine, but when I try to deploy it I get the following error:
D1 bindings require module-format workers. [code: 10021]
On wrangler.toml I had to put the following entry point
main = "./app/routes/index.tsx"
I cannot see any
addEventListener
, but onlyexport default
in the code, so according to me the worker is already in module-format.Furthermore in package.json there is:
"type": "module",
wrangler 3.50.0
npm 10.5.0
node v20.12.2
Windows 10
Thank you
The text was updated successfully, but these errors were encountered: