-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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 file imports being appended with .js
extensions intermittently
#52167
Comments
FWIW, seems that adding
into my |
Can you share the project where this is happening? |
I"m running into an issue that I think has the same root cause. I want .js endings but I"m not getting them, since I"m working exclusively with .js files already. @andrewbranch You can find my project at https://github.com/rendajs/Renda, it doesn"t require a whole lot of work to get it up and running, but you do need to have Deno installed in order for it to automatically download TypeScript 5.0.2. Otherwise I think you might also be able to reproduce this by manually placing the TypeScript package in |
Screen recording with steps to reproduce: screen.recording.mp4 |
Seems like adding |
The Typescript documentation recommand to now use module and moduleResolution to I use Typescript 5.2.2 |
I noticed this has started happening in the latest version vscode (1.88) despite the settings mentioned in this thread. Downgrading fixed the issue for me. Leaving a note here for others to find... |
Hi, the |
Coming back here because after upgrading to vscode 1.92, this behavior returned and I didn"t want to stay stuck on 1.88 forever. I eventually figured out the
|
Indeed, without |
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
settings.json
file, so uses the default settings.ts
files in my project, when I go to import another.ts
file the autocomplete option for the import adds a.js
file extension..ts
file in the same directory or another directory, does not append the.js
file extension..ts
file(s) that appends the.js
file extension on the auto import, when I remove all of the code and then try to import, it does not append the.js
extension. But if I close the file and re-open it again, it will. But this is intermittent.Screen.Recording.2022-12-29.at.21.16.32.mov
Screen.Recording.2022-12-29.at.21.18.10.mov
Not sure how much the
tsconfig.json
file can affect this but this is my ts config.The text was updated successfully, but these errors were encountered: