#Removing file extensions on import
1 messages · Page 1 of 1 (latest)
you can use the --unstable-sloppy-imports flag; we dont recommend to do this unless really needed (ie moving over a node project)
because we want people to avoid using it
you can read a bit more on it here: https://docs.deno.com/runtime/reference/cli/unstable_flags/#--unstable-sloppy-imports
still a bit lost on it, but it's something you just accept, ig
It's just bad practice
and some unnecessary overhead
Sorry to necro bump here.
I have configured an import map to import a local, non distributed node package (designed for npm context, we are just prototyping new apps with Deno).
The import is to a barrel export that does not have file extensions on all t he exports.
It looks like this:
export * from './src/types/modelTypes'
export * from './src/answers'
export * from './src/changelogs'
...
It looks like the Deno language server cannot properly resolve these imports without attaching the .ts extension to each of the barrel exports.
This is not an option for us as this package is being used elsewhere and should not be modified for this particular use.
How can I make the Deno language server correctly resolve this import?