3 ms·
I tried deno a while ago (over a year) and could not find a way to get deno and typescript to accept the same files. They disagreed about filename extensions in
by dunham 3y ago
I tried deno a while ago (over a year) and could not find a way to get deno and typescript to accept the same files. They disagreed about filename extensions in import statements, and I couldn't find a format that was accepted by both.
- AgentME 3y agoAre you trying to use Typescript separately from Deno instead of Deno's builtin support for Typescript? Are you using VSCode without the Deno extension? I think you're overcomplicating something if you're running into this issue.
- dunham 3y agoThat would be yes on both points. I was unaware that deno needed a separate vscode extension and did not know that deno ran the typechecking itself. I may give it a try on some personal projects now that I know this.
- chromakode 3y agoThe repo I linked to has an example of shared files between Deno and Vite. I'm using import maps to have a consistent `@shared/types` module between both (as well as consistent names for the requisite imports)