jfbn
jfbn
DDeno
Created by Sun「無用」 on 1/26/2025 in #help
Removing file extensions on import
I basically need to solve this problem in a way that assumes I am not in control of the node package I'm trying to import
14 replies
DDeno
Created by Sun「無用」 on 1/26/2025 in #help
Removing file extensions on import
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'
...
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?
14 replies