You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both of these examples run fine for me on node 23; i can reproduce the issue on 22.14 - so it might be a fixed bug that just hasn't been backported to 22 yet?
fregante
changed the title
ERR_UNKNOWN_FILE_EXTENSION if the file use import
ERR_UNKNOWN_FILE_EXTENSION on typescript files (broken TS support on node 22.14)
Apr 5, 2025
Version
v22.14.0
Platform
Subsystem
No response
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
100%
What is the expected behavior? Why is that the expected behavior?
Support is documented here https://nodejs.org/api/typescript.html#type-stripping
What do you see instead?
Additional information
Feels like I'm missing something. Why does this not work? This also fails
This fails regardless of tsconfig presence
The text was updated successfully, but these errors were encountered: