question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

An import path cannot end with a '.ts' extension.

See original GitHub issue

image

Found deno, version:
deno: 1.1.0
v8: 8.4.300
typescript: 3.9.2

.vscode/settings.json

{
  "deno.enable": true
}

Plugin: 1.25.0 VSCode: 1.46.0 OS: macOS 10.15.4

The plugin doesn’t seem to be working in any case. Reinstalled plugin, restarted VSCode, restarted TSServer, but still couldn’t get it working.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
marshallswaincommented, Nov 13, 2021

Other plugins can cause this issue. I discovered that using “Disable (Workspace)” on the Volar plugin for Vue fixed the issue for me.

Screen Shot 2021-11-13 at 3 00 29 PM

4reactions
yubaoquancommented, Aug 25, 2020

Same issue

Version: 1.48.1 (user setup) Commit: 3dd905126b34dcd4de81fa624eb3a8cbe7485f13 Date: 2020-08-19T17:12:13.244Z Electron: 7.3.2 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Windows_NT x64 10.0.18362

deno plugin: 2.0.13

deno: 1.2.2

typescript: 3.9.7

Add .vscode/settings.json and config

{
  "deno.enable": true,
}

it worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

An import path cannot end with '.ts' - NodeJS and Visual Code
Even that Visual Code prompts an error, my code got running.. When I remove the .ts extension from import statement, I got an...
Read more >
Suppressing "The import path cannot end with a '.ts' extension ...
So the output a.js will contain the same import specifier "./b.ts", although possibly translated to require("./b.ts") ...
Read more >
An import path cannot end with a '.ts' extension. : r/Deno - Reddit
An import path cannot end with a '.ts' extension. · Install the Deno CLI. · Install this extension. · Ensure deno is available...
Read more >
An import path cannot end with a '.ts' extension ... - Issuehunt
An import path cannot end with a '.ts ' extension. Consider importing 'xx.js' instead. #2750. cn3lfs posted onGitHub. <!-- Check those before opening...
Read more >
Luca Casonato 🏳️‍ в Twitter: „My grand plan for 2022 1 ...
Add TSC config option to disable "An import path cannot end with a '.ts' extension. Consider importing './x.js' instead. ts(2691)" diagnostic 3.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found