Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mem0 OSS TS SDK not working with Supabase Edge Functions #2488

Open
whysosaket opened this issue Apr 2, 2025 · 0 comments
Open

Mem0 OSS TS SDK not working with Supabase Edge Functions #2488

whysosaket opened this issue Apr 2, 2025 · 0 comments

Comments

@whysosaket
Copy link
Collaborator

🐛 Describe the bug

Mem0 Open-Source Typescript SDK is not working with Supabase Edge Functions

import { Memory } from "npm:mem0ai/oss";

Getting the following error:

event loop error: Error: Could not find module root given file: "/var/tmp/sb-compile-edge-runtime/node_modules/localhost/bindings/1.5.0/bindings.js". Do you have a `package.json` file?
    at Function.getRoot (file:///var/tmp/sb-compile-edge-runtime/node_modules/localhost/bindings/1.5.0/bindings.js:211:13)
    at bindings (file:///var/tmp/sb-compile-edge-runtime/node_modules/localhost/bindings/1.5.0/bindings.js:82:32)
    at Object.<anonymous> (file:///var/tmp/sb-compile-edge-runtime/node_modules/localhost/sqlite3/5.1.7/lib/sqlite3-binding.js:1:291)
    at Object.<anonymous> (file:///var/tmp/sb-compile-edge-runtime/node_modules/localhost/sqlite3/5.1.7/lib/sqlite3-binding.js:3:4)
    at Module._compile (node:module:731:34)
    at Module._extensions..js (node:module:745:10)
    at Module.load (node:module:656:32)
    at Module._load (node:module:524:12)
    at Module.require (node:module:675:19)
    at require (node:module:790:16)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant