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
Ideally, I should be able to use this library with dynamic import so that I can use S3 on Cloudflare Pages/Workers and filesystem locally. But currently when trying to import the core library, it fails because it uses some dependencies that don't work there.
The text was updated successfully, but these errors were encountered:
Seems to be an issue with SvelteKit I think, created a repository here: https://github.com/svelterust/flydrive-pages. Just run with bun install then bun run build. Getting these issues here:
> Using @sveltejs/adapter-cloudflare
✘ [ERROR] Could not resolve "node:url"
node_modules/@poppinss/utils/build/index.js:21:48:
21 │ import { fileURLToPath as fileURLToPath3 } from "node:url";
╵ ~~~~~~~~~~
Cannot use "node:url" when deploying to Cloudflare.
✘ [ERROR] Could not resolve "node:fs/promises"
node_modules/@poppinss/utils/build/index.js:122:30:
122 │ import { readdir, stat } from "node:fs/promises";
╵ ~~~~~~~~~~~~~~~~~~
Cannot use "node:fs/promises" when deploying to Cloudflare.
✘ [ERROR] Could not resolve "fs"
node_modules/etag/index.js:22:20:
22 │ var Stats = require('fs').Stats
╵ ~~~~
Cannot use "fs" when deploying to Cloudflare.
Same imports worked with Hono however, not sure what's happening here.
Ideally, I should be able to use this library with dynamic import so that I can use S3 on Cloudflare Pages/Workers and filesystem locally. But currently when trying to import the core library, it fails because it uses some dependencies that don't work there.
The text was updated successfully, but these errors were encountered: