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

TS2691: import .ts file #39965

Closed
SancheZz opened this issue Aug 9, 2020 · 3 comments
Closed

TS2691: import .ts file #39965

SancheZz opened this issue Aug 9, 2020 · 3 comments
Labels
Duplicate An existing issue was already created

Comments

@SancheZz
Copy link

SancheZz commented Aug 9, 2020

TypeScript Version: 3.9.7

Code

import { doSomething } from './utils.ts';

Expected behavior:
It should work :) I can have different files with the same name, e.g. component.ts and component.vue.

Actual behavior:
error TS2691: An import path cannot end with a '.ts' extension. Consider importing './utils' instead.

Related Issues: #27481

@MartinJohns
Copy link
Contributor

Duplicate of #38546 & #27481.

@SancheZz
Copy link
Author

@MartinJohns
Could you please add compiler option to allow .ts extension? Please, consider resolving #37582

@orta orta added the Duplicate An existing issue was already created label Aug 10, 2020
@typescript-bot
Copy link
Collaborator

This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

4 participants