flx_dl
flx_dl2w ago

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.
No description
5 Replies
[uncomfy@localhost ~]$ ▌
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
molsson
molsson2w ago
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
molsson
molsson2w ago
No description
[uncomfy@localhost ~]$ ▌
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
flx_dl
flx_dlOP2w ago
Thanks a lot folks. It is really appreciated. Yeah sorry for the colorschema...