Filip Seman
Is possible to run nodejs (typescript) project with esm modules?
@raunioroo Are you sure it's Node's implementation? From Typescript documentation:
If TypeScript determines that the runtime will perform a lookup for ./a.js given the module specifier "./a", then ./a.js will undergo extension substitution, and resolve to the file a.ts in this example.To me it sounds like it's up to the runtime to implement this behaviour.
22 replies
Is possible to run nodejs (typescript) project with esm modules?
That's ok, but i'm wondering why it doesn't suppor standard
.js
import even if it's typescript file
https://www.typescriptlang.org/docs/handbook/modules/reference.html#extensionless-relative-paths22 replies
vscode unable to resolve types
Ok, I'm an idiot, basic
npm:@types/lodash
works, I forgot about Deno: init workspace
because I'm experimenting with multiple folder structures and root has deno.enable: true
, but each folder is its own workspace space, so everyone needs deno.enable: true
. Now typings works.
For import_maps
it just occurred to me now deno.json
is required to points to the import map {"importMap": "./import_map.json"}
so vscode plugin can infer this information.8 replies