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
My project has a main.ts entry point, as well as a util.ts file that it uses. util.ts imports nothing from main.ts. I'm using typescript 5.4.5 and tsimp 2.0.11, and the project is set up to be ESM-only.
Reproduction steps
Run TSIMP_DIAG=error tsimp src/main.ts (should work correctly)
Add the line export const greeting = "hi"; to util.ts
I did spend some time looking at this, and it seems like the issue might be at the Typescript server level (or how this project uses the Typescript API), but I don't have enough knowledge of either this codebase or that one to be comfortable filing a bug report there. The typescript server API is not particularly well-documented.
Environment information
My project has a
main.ts
entry point, as well as autil.ts
file that it uses.util.ts
imports nothing frommain.ts
. I'm using typescript 5.4.5 and tsimp 2.0.11, and the project is set up to be ESM-only.Reproduction steps
TSIMP_DIAG=error tsimp src/main.ts
(should work correctly)export const greeting = "hi";
toutil.ts
main.ts
:TSIMP_DIAG=error tsimp src/main.ts
againsrc/main.ts:10:10 - error TS2724: '"./util.js"' has no exported member 'greeting'.
tsimp --restart
TSIMP_DIAG=error tsimp src/main.ts
a third time, and now it works again.The text was updated successfully, but these errors were encountered: