-
-
Notifications
You must be signed in to change notification settings - Fork 432
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
Bundle failure when export default "satisfies" any generic type, in Typescript 4.9.1-beta #1511
Comments
It's likely this is a typescript issue rather than a ts-loader/webpack one. ts-loader uses the export from TSC - probably worth looking there first. |
I'm not sure how to reproduce this with tsc only. |
Just run |
I encountered this issue when beginning to use the https://github.com/cjdell/ts-loader-satisfies-bug Hope this is of help. Let me know if you want me to clarify anything. Also thank you to all contributors for giving this your valuable attention. |
Thanks for sharing a reproduction - I don't have bandwidth to look at it at present but I encourage others to do so. I'm surprised this is occurring as TSC should be stripping this |
Thanks @johnnyreilly. I actually have since narrowed it down further and I'm invoking the TS compile just as |
No worries! |
Link to the TypeScript issue for anyone following this: |
Looks like this will be fixed very shortly... :-) |
I hope you're |
Expected Behaviour
Output file is bundled correctly.
Actual Behaviour
The output file index.js only contains the 2 lines of the compiled entry file without bundling anything.
Steps to Reproduce the Problem
Import anything and use it in export default,
Then add "satisfies Readonly" or satisfies any other generic type at the end
This only happens when export default satisfies a generic type, "satisfies unknown" or "satisfies () => void" work correctly.
Dependencies:
Location of a Minimal Repository that Demonstrates the Issue.
The text was updated successfully, but these errors were encountered: