I'm trying to use agentfs with cloudflare durable object for storage but when deploying I'm experiencing:
Uncaught TypeError: The argument 'path' The argument must be a file URL object, a file URL string,
or an absolute path string.. Received 'undefined'
at null.<anonymous> (node:module:34:15) in createRequire
at null.<anonymous>
(file:///Users/samko/Documents/Web/statie.sh/node_modules/.pnpm/@tursodatabase+database@0.4.4/node_modules/@tursodatabase/database/index.js:7:17)
[code: 10021]
To learn more about this error, visit:
https://developers.cloudflare.com/workers/observability/errors/#validation-errors-10021
I think that this issue is caused by: agentfs-sdk/dist/integrations/just-bash/AgentFs.js importing import { AgentFS } from "../../index_node.js"; where node env is not supported on CF workers. Because when I alias "@tursodatabase/database": "./src/turso-shim.ts" everything works and can be deployed.
I'm trying to use agentfs with cloudflare durable object for storage but when deploying I'm experiencing:
I think that this issue is caused by:
agentfs-sdk/dist/integrations/just-bash/AgentFs.jsimportingimport { AgentFS } from "../../index_node.js";where node env is not supported on CF workers. Because when I alias"@tursodatabase/database": "./src/turso-shim.ts"everything works and can be deployed.