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

Can't import google/generative-ai in Deno #1345

Open
SaavanNanavati opened this issue Jan 3, 2025 · 0 comments
Open

Can't import google/generative-ai in Deno #1345

SaavanNanavati opened this issue Jan 3, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@SaavanNanavati
Copy link

Bug report

  • [ X ] I confirm this is a bug with Supabase, not with my own application.
  • [ X ] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

I can't import the Google library into my Deno edge function:

import {
    GoogleGenerativeAI,
    HarmBlockThreshold,
    HarmCategory,
} from require("npm:@google/[email protected]");

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Try importing in any Supabase edge function.

Expected behavior

It should import fine.

System information

  • OS: MacOS
  • Browser (if applies) Chrome
  • Version of supabase-js: 2.47.10
  • Version of Node.js: 20.12.2
@SaavanNanavati SaavanNanavati added the bug Something isn't working label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant