Closed DevelopmentPenguin closed 1 year ago
Deno
is a global variable that is always available. It's not module that you need to import.
I know but i have something that needs the import:
If i get rid of the import then i will have an error.
What error do you get?
When i got rid of the import?
Yes. If your editor is complaining about missing Deno
global follow the instructions here: https://deno.com/manual@v1.34.0/getting_started/setup_your_environment#using-an-editoride. You don't need to import anything in your code to use Deno
global.
well, this is the error i got when i deleted the import: Property 'readTextFile' does not exist on type 'typeof Deno'.
Follow the instructions in the above link from the manual. If you still have problem I suggest to join https://discord.gg/deno and message in #help channel.
installing the extension still didnt help
oh nevermind i somehow figured it out. thanks
i tried to import all modules for deno but i doesnt seem to be working. please help me:
error: File 'c:/Users/NoSweatProgramming/Desktop/dsharp/deno.d.ts' is not a module.