Environment information
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
- Add these lines to
main.ts:
import { greeting } from "./util.js";
console.log(greeting);
- Run
TSIMP_DIAG=error tsimp src/main.ts again
- Now I get an error:
src/main.ts:10:10 - error TS2724: '"./util.js"' has no exported member 'greeting'.
- Run
tsimp --restart
- Run
TSIMP_DIAG=error tsimp src/main.ts a third time, and now it works again.
Environment information
My project has a
main.tsentry point, as well as autil.tsfile that it uses.util.tsimports 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.tsmain.ts:TSIMP_DIAG=error tsimp src/main.tsagainsrc/main.ts:10:10 - error TS2724: '"./util.js"' has no exported member 'greeting'.tsimp --restartTSIMP_DIAG=error tsimp src/main.tsa third time, and now it works again.