Skip to content

fix: TS5011 errors with TypeScript 6.0: transpileModule called with rootDir: undefined#1679

Merged
johnnyreilly merged 8 commits intoTypeStrong:mainfrom
errorx666:issue-1678
Apr 2, 2026
Merged

fix: TS5011 errors with TypeScript 6.0: transpileModule called with rootDir: undefined#1679
johnnyreilly merged 8 commits intoTypeStrong:mainfrom
errorx666:issue-1678

Conversation

@errorx666
Copy link
Copy Markdown
Contributor

fix #1678

@johnnyreilly
Copy link
Copy Markdown
Member

Thanks - I've authorised the test packs to run. This change should validate if this breaks existing behaviour in ts-loader. If it doesn't, then this may be a very straightforward change to make.

Please can you remove the packageManager change for now? Thanks

@johnnyreilly
Copy link
Copy Markdown
Member

Because the execution test pack is so old, it isn't compatible with the breaking changes of TypeScript 6. For now I've dropped next from the test matrix so we can just see if this works for historic TypeScript versions

@errorx666
Copy link
Copy Markdown
Contributor Author

errorx666 commented Apr 1, 2026

Please can you remove the packageManager change for now? Thanks

Done.

@johnnyreilly
Copy link
Copy Markdown
Member

Ah - your force push has removed some of my changes. Let me reapply them

@johnnyreilly johnnyreilly changed the title Issue 1678 fix: TS5011 errors with TypeScript 6.0: transpileModule called with rootDir: undefined Apr 1, 2026
@johnnyreilly
Copy link
Copy Markdown
Member

Before we land this I'd like to get trusted publishing set up: #1680

Added a new feature for trusted publishing in version 9.5.5.
@johnnyreilly
Copy link
Copy Markdown
Member

Theoretically trusted publishing is now set up. I'll try and merge this and do a release later on probably

@johnnyreilly johnnyreilly merged commit f84480f into TypeStrong:main Apr 2, 2026
43 checks passed
@johnnyreilly
Copy link
Copy Markdown
Member

Attempting to publish with trusted publishing for the first time now: https://github.com/TypeStrong/ts-loader/releases/tag/v9.5.5

@johnnyreilly
Copy link
Copy Markdown
Member

This should have published now with v9.5.7 - gosh trusted publishing is hostile https://github.com/TypeStrong/ts-loader/actions/runs/23890002966/job/69660956084

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TS5011 errors with TypeScript 6.0: transpileModule called with rootDir: undefined

2 participants