-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
TypeScript complains about file extensions in import statements #71
Comments
Yeah, I'm at a bit of a loss here too :( One option would be to allow extension-less imports, but that kinda breaks the "it's just modules" philosophy just to make TS happy. |
Just noticed: By default vscode will insert auto-imports for every function/value/class you use from another file and those are always without an extension. EDIT: And having extensions in the file paths breaks cmd/control click to jump to the function definition |
@marvinhagemeister I'm not sure if its my config, but for me the imports are inserted with a file extension - but only if any current imports already have the extension. |
@developit Very strange, just to confirm: Does this happen inside a TS file with a |
I think now you can choose to use |
Currently TypeScript complains about adding an
.ts
,.tsx
,.js
or.jsx
extension to the import path.Not sure what we can do on our end here.
Relevant TS issues:
The text was updated successfully, but these errors were encountered: