Cannot build with github actions

Hey i can do wrangler publish but i cannot seem to publish through github actions with the wrangler actions https://github.com/cloudflare/wrangler-action
✘ [ERROR] Could not resolve "hono"

src/constants.ts:1:21:
1 │ import { Hono } from "hono";
╵ ~~~~~~

You can mark the path "hono" as external to exclude it from the bundle, which will remove this error.


✘ [ERROR] Build failed with 1 error:

src/constants.ts:1:21: ERROR: Could not resolve "hono"
✘ [ERROR] Could not resolve "hono"

src/constants.ts:1:21:
1 │ import { Hono } from "hono";
╵ ~~~~~~

You can mark the path "hono" as external to exclude it from the bundle, which will remove this error.


✘ [ERROR] Build failed with 1 error:

src/constants.ts:1:21: ERROR: Could not resolve "hono"
i just seem to get this error anyone know how to fix?
GitHub
GitHub - cloudflare/wrangler-action: 🧙‍♀️ zero-config cloudflare wo...
🧙‍♀️ zero-config cloudflare workers application deployment using wrangler and github actions - GitHub - cloudflare/wrangler-action: 🧙‍♀️ zero-config cloudflare workers application deployment using ...
1 Reply
James
James2y ago
Make sure you have Hono in your package/package-lock and have a step in your workflow that runs npm ci or npm install. The action doesn’t do this for you.
Want results from more Discord servers?
Add your server