#installed deno, btu not working

9 messages · Page 1 of 1 (latest)

safe iris
#

Hi, I installed deno on my mac. Trying to run simple Deno.serve((_request: Request) => {
return new Response("Hello, world!");
});
but getting error "Cannot find name Deno"?

warm flume
#

Is this error in vscode?

safe iris
#

yes

#

i have installed the extension though

sly barn
#

Do you have a deno.json file in the same directory structure?

safe iris
#

I am using it in a supabase project, is it than needed?

modest inlet
#
  1. Is the deno.json file in the root directory of your project? Workspaces are not supported yet in the Deno extension. It's currently under active development
  2. Make sure the extension is enabled. There is a Deno: Enable command that you can use.
  3. If it's still not working file an issue here https://github.com/denoland/deno/issues/new/choose
safe iris
#

@modest inlet the deno.json file was missing. It wasn't anywhere in the supabase docs, but now looked into the deno docs to get it.

#

But the thing is i wanna run it and so something like "deno run server.ts" I get a deno not found in my terminal eventhough I have it installed on my mac