Deno: An import path cannot end with a '.ts' extension. Consider importing 'https://deno.land/x/abc/deps' instead.

Created on 1 May 2020  路  9Comments  路  Source: denoland/deno

I got tslint error when I import a file from deno like this:

import { path } from "https://deno.land/x/abc/deps.ts";

I installed Deno VSCode pulgin and restart and nothing changes. the only solution for it is just adding @ts-ignore to fix this.
Any solution to fix that?

OS: Windows 10
VSCODE: 1.44.2
Deno: deno 0.41.0
v8 8.2.308
typescript 3.8.3

Most helpful comment

you should add the following in the settings of vscode

"deno.enable": true

All 9 comments

you should add the following in the settings of vscode

"deno.enable": true

@zhmushan I added it and restart VSCode and it does not work.

@slim-hmidi This is a https://github.com/axetroy/vscode-deno issue, doesn't belong here.

@nayeemrmn even without the VSCode plugin I have the same issue, is not a question of plugin.

Are you talking about VSCode warnings? The plugin is supposed to suppress that. It's obviously not a Deno issue.

Sounds like an issue to report to tslint.

you should add the following in the settings of vscode

"deno.enable": true

its work's
thank you @zhmushan

@yayanbachtiar its not working at me

@ridhosatriawan Run deno: Init command from VS Code commands (press F1). Then restart VS Code.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

motss picture motss  路  3Comments

kyeotic picture kyeotic  路  3Comments

benjamingr picture benjamingr  路  3Comments

davidbarratt picture davidbarratt  路  3Comments

CruxCv picture CruxCv  路  3Comments