denoland / wanted_modules

Is there a missing deno module that is preventing you from building something? Let us know here.
https://deno.land/x
46 stars 2 forks source link

problem importing deno #78

Closed DevelopmentPenguin closed 1 year ago

DevelopmentPenguin commented 1 year ago

i tried to import all modules for deno but i doesnt seem to be working. please help me:

Capture23

error: File 'c:/Users/NoSweatProgramming/Desktop/dsharp/deno.d.ts' is not a module.

bartlomieju commented 1 year ago

Deno is a global variable that is always available. It's not module that you need to import.

DevelopmentPenguin commented 1 year ago

I know but i have something that needs the import:

Captur45e

If i get rid of the import then i will have an error.

bartlomieju commented 1 year ago

What error do you get?

DevelopmentPenguin commented 1 year ago

When i got rid of the import?

bartlomieju commented 1 year ago

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.

DevelopmentPenguin commented 1 year ago

well, this is the error i got when i deleted the import: Property 'readTextFile' does not exist on type 'typeof Deno'.

bartlomieju commented 1 year ago

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.

DevelopmentPenguin commented 1 year ago

installing the extension still didnt help

DevelopmentPenguin commented 1 year ago

oh nevermind i somehow figured it out. thanks