We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
component.ts
component.vue
Actual behavior: error TS2691: An import path cannot end with a '.ts' extension. Consider importing './utils' instead.
error TS2691: An import path cannot end with a '.ts' extension. Consider importing './utils' instead.
Related Issues: #27481
The text was updated successfully, but these errors were encountered:
Duplicate of #38546 & #27481.
Sorry, something went wrong.
@MartinJohns Could you please add compiler option to allow .ts extension? Please, consider resolving #37582
.ts
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.
No branches or pull requests
TypeScript Version: 3.9.7
Code
Expected behavior:
It should work :) I can have different files with the same name, e.g.
component.ts
andcomponent.vue
.Actual behavior:
error TS2691: An import path cannot end with a '.ts' extension. Consider importing './utils' instead.
Related Issues: #27481
The text was updated successfully, but these errors were encountered: