Amodeus R.
Amodeus R.
Explore posts from servers
CDCloudflare Developers
Created by Amodeus R. on 2/16/2025 in #pages-help
Error when trying to build project in Cloudflare
So I'm having the following error when trying to build the project in cloudflare:
error during build:
17:19:52.767 [vite]: Rollup failed to resolve import "zod" from "/opt/buildhome/repo/api/shared/expenses.types.ts".
17:19:52.767 This is most likely unintended because it can break your application at runtime.
17:19:52.767 If you do want to externalize this module explicitly add it to
17:19:52.767 `build.rollupOptions.external`
17:19:52.767 at viteWarn (/opt/buildhome/repo/web/node_modules/vite/dist/node/chunks/dep-BJP6rrE_.js:51043:21)
17:19:52.768 at onwarn (/opt/buildhome/repo/web/node_modules/@vitejs/plugin-react/dist/index.mjs:282:9)
17:19:52.768 at onRollupWarning (/opt/buildhome/repo/web/node_modules/vite/dist/node/chunks/dep-BJP6rrE_.js:51073:5)
17:19:52.768 at onwarn (/opt/buildhome/repo/web/node_modules/vite/dist/node/chunks/dep-BJP6rrE_.js:50741:7)
17:19:52.768 at <anonymous> (/opt/buildhome/repo/web/node_modules/rollup/dist/es/shared/node-entry.js:19599:13)
17:19:52.768 at logger (/opt/buildhome/repo/web/node_modules/rollup/dist/es/shared/node-entry.js:21325:9)
17:19:52.768 at handleInvalidResolvedId (/opt/buildhome/repo/web/node_modules/rollup/dist/es/shared/node-entry.js:20214:26)
17:19:52.768 at <anonymous> (/opt/buildhome/repo/web/node_modules/rollup/dist/es/shared/node-entry.js:20172:26)
17:19:52.768 at processTicksAndRejections (native:7:39)
17:19:52.786 error: script "build" exited with code 1
17:19:52.789 Failed: Error while executing user command. Exited with error code: 1
17:19:52.797 Failed: build command exited with code: 1
17:19:53.644 Failed: error occurred while running build command
error during build:
17:19:52.767 [vite]: Rollup failed to resolve import "zod" from "/opt/buildhome/repo/api/shared/expenses.types.ts".
17:19:52.767 This is most likely unintended because it can break your application at runtime.
17:19:52.767 If you do want to externalize this module explicitly add it to
17:19:52.767 `build.rollupOptions.external`
17:19:52.767 at viteWarn (/opt/buildhome/repo/web/node_modules/vite/dist/node/chunks/dep-BJP6rrE_.js:51043:21)
17:19:52.768 at onwarn (/opt/buildhome/repo/web/node_modules/@vitejs/plugin-react/dist/index.mjs:282:9)
17:19:52.768 at onRollupWarning (/opt/buildhome/repo/web/node_modules/vite/dist/node/chunks/dep-BJP6rrE_.js:51073:5)
17:19:52.768 at onwarn (/opt/buildhome/repo/web/node_modules/vite/dist/node/chunks/dep-BJP6rrE_.js:50741:7)
17:19:52.768 at <anonymous> (/opt/buildhome/repo/web/node_modules/rollup/dist/es/shared/node-entry.js:19599:13)
17:19:52.768 at logger (/opt/buildhome/repo/web/node_modules/rollup/dist/es/shared/node-entry.js:21325:9)
17:19:52.768 at handleInvalidResolvedId (/opt/buildhome/repo/web/node_modules/rollup/dist/es/shared/node-entry.js:20214:26)
17:19:52.768 at <anonymous> (/opt/buildhome/repo/web/node_modules/rollup/dist/es/shared/node-entry.js:20172:26)
17:19:52.768 at processTicksAndRejections (native:7:39)
17:19:52.786 error: script "build" exited with code 1
17:19:52.789 Failed: Error while executing user command. Exited with error code: 1
17:19:52.797 Failed: build command exited with code: 1
17:19:53.644 Failed: error occurred while running build command
2 replies
HHono
Created by Amodeus R. on 2/1/2025 in #help
How to add credentials to a Hono client?
I see hono documentarion unfortunately lacks a lot of information on how to use it appropriately, and It's no different with this piece of information, so I'd like to know how to or if it's even possible to make authentication via cookies. Can anyone help me?
29 replies
HHono
Created by Amodeus R. on 1/8/2025 in #help
Error cannot file module "@hono/bun" (TS2307)
I'm trying to statically serve some files, in the docs it says to use serveStatic from @hono/bun, but I receive the error modules and its types not found. I've tried multiple solutions but none work: - Tried installing the packaged to ensure @hono/bun was installed using bun add @hono/bun (but it doesnt even exist) - Checked TypeScript types if type declarations existed. Tried adding declare module "@hono/bun"; to global.d.ts to bypass missing types but server doesn't run. - Confirmed Bun version which I'm with the latest version. - Reinstalled dependencies deleting node_modules and bun.lockb, then reinstalling dependencies with bun install, but the error persists. How to solve this?
7 replies
CDCloudflare Developers
Created by Amodeus R. on 1/15/2023 in #workers-help
Error when trying to deploy project
7 replies