You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 11, 2021. It is now read-only.
I installed Deno, as mentioned in the docs, with curl -fsSL https://deno.land/x/install/install.sh | sudo DENO_INSTALL=/usr/local sh. As such, the folder ~/.deno doesnt exist.
Steps necessary for a working deno environment were:
Create ~/.deno manually
deno types > ~/.deno/deno.d.ts
Adjust the http/s paths in tsconfig.json to /home/[user]/.cache/deno/deps/... as this is where deno caches the dependencies by default, I think..? Maybe this should be dynamically detected using deno info?
Add import 'deno'; to the top of the source file, as Deno cannot be found otherwise
Optional: Remove node_modules, package.json and package-lock.json.
Not really sure why the deno vscode npm plugin is necessary or what it does, but the TS support works just as fine without. In fact, I removed the entire extension again after all above steps since it was not required anymore obviously. Thanks for all the work anyway. Hopefully this will help in getting things aligned again.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I installed Deno, as mentioned in the docs, with
curl -fsSL https://deno.land/x/install/install.sh | sudo DENO_INSTALL=/usr/local sh
. As such, the folder~/.deno
doesnt exist.Steps necessary for a working deno environment were:
~/.deno
manuallydeno types > ~/.deno/deno.d.ts
tsconfig.json
to/home/[user]/.cache/deno/deps/...
as this is where deno caches the dependencies by default, I think..? Maybe this should be dynamically detected usingdeno info
?import 'deno';
to the top of the source file, asDeno
cannot be found otherwisenode_modules
,package.json
andpackage-lock.json
.Not really sure why the deno vscode npm plugin is necessary or what it does, but the TS support works just as fine without. In fact, I removed the entire extension again after all above steps since it was not required anymore obviously. Thanks for all the work anyway. Hopefully this will help in getting things aligned again.
The text was updated successfully, but these errors were encountered: