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
Describe the bug
Hi, I've been trying to run the supabase CLI with Deno 2 and running into some error. Although I know my alternative solution is to use npx or bunx, but just want to raise this issue and start a conversation to see if this could be resovled one day.
To Reproduce
Steps to reproduce the behavior:
Have Deno 2 installed
Create a new directory, and run deno init in it
The following content been added to deno.json
{
# install deps in a node_modules directory "nodeModulesDir": "auto",
"imports": {
"supabase": "npm:supabase@^1.223.10"
}
}
Install deps: deno install --allow-scripts
Try run the CLI with deno run -A npm:supabase --help
Sees the following error in terminal:
❯ deno run -A npm:supabase --help
error: Uncaught SyntaxError: Invalid or unexpected token
at <anonymous> (file:///Users/folder/node_modules/.deno/[email protected]/node_modules/supabase/bin/supabase:1:1)
Expected behavior
Deno 2 with deno run command should also be able to run the supabase CLI
I think this is actually a Deno 2 issue as the binary will be running correctly if you do a direct call to it via /Users/folder/node_modules/.deno/[email protected]/node_modules/supabase/bin/supabase
Describe the bug
Hi, I've been trying to run the
supabase
CLI with Deno 2 and running into some error. Although I know my alternative solution is to usenpx
orbunx
, but just want to raise this issue and start a conversation to see if this could be resovled one day.To Reproduce
Steps to reproduce the behavior:
deno init
in itdeno.json
deno install --allow-scripts
deno run -A npm:supabase --help
Sees the following error in terminal:
Expected behavior
Deno 2 with
deno run
command should also be able to run thesupabase
CLISystem information
The text was updated successfully, but these errors were encountered: