Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled #1184

Closed
khanakia opened this issue Oct 16, 2024 · 2 comments

Comments

@khanakia
Copy link

Describe the bug
I just did a fresh install and opened the project in vscode and getting weird typescript errors

I have enabled Deno and followed the steps here https://docs.deno.com/runtime/reference/vscode/#troubleshooting still no luck
To Reproduce

  1. deno run -A -r https://fresh.deno.dev
  2. cd fresh-project
  3. deno task start

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

Screenshot 2024-10-16 at 11 25 30 PM

Screenshot 2024-10-16 at 11 25 43 PM
Screenshot 2024-10-16 at 11 25 57 PM

If applicable, add screenshots to help explain your problem.

Versions

vscode: 1.94.2 (Universal) deno: 2 extension: lastest

@nayeemrmn
Copy link
Collaborator

Check your user settings for "typescript.tsserver.experimental.enableProjectDiagnostics": true, and disable it. Those errors are coming from the built-in TS server, and our plugin can't supress errors caused by that setting.

Please verify if that was the problem.

@khanakia
Copy link
Author

thanks this fixed the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants