Problems with modules import
Hi,
I'm coming from a nodejs background, I'm a fullstack webdev but I'm pretty new to Deno. Right now I'm trying to build a tokenizer for my app but I'm having an hard time understanding how the modules work in Deno, I think there is some authorization command that are needed to use modules as Deno is aiming security first. I'm coding on neovim. Here is a picture showing my problem. If anyone could help me with that, it would be really appreciated. Thank you and have a good day.
5 Replies
tbh i am having a hard time looking at the text since the colour is too faded
but i feel like it's an HTTP import
you might need to run "deno cache main.ts" to ensure that all https and jsr imports are downloaded into the global deno dir
in VSCode there is a setting in the deno plugin called "Cache on save" that does this automatically as you work... not sure if neovim has something similar
if not using vscode, i guess what they can do is
deno install --entrypoint filepath.ts
i guess
oh yeah i didnt see the cache command. very useful
Thanks a lot folks. It is really appreciated.
Yeah sorry for the colorschema...