Skip to content
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

v3.6.1 New Typescript requirement - Won't compile unless adding allowSyntheticDefaultImports #70

Closed
bjornharvold opened this issue Jan 20, 2024 · 3 comments

Comments

@bjornharvold
Copy link

Error message:

can only be default-imported using the 'allowSyntheticDefaultImports' flag

import xmlFormat from 'xml-formatter';
            ~~~~~~~~~
node_modules/xml-formatter/dist/types/index.d.ts:57:1
export = formatXml;

This module is declared with 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag.
@chrisbottin
Copy link
Owner

Hey @bjornharvold,

Thanks for raising this issue. The recent changes to sort #68 have caused this regression.

I think I will have to revert them today and come up with a different solution.

@chrisbottin
Copy link
Owner

I've now reverted the changes made for #68.

Version 3.6.2 should fix this.

@bjornharvold
Copy link
Author

Yes, that fixed it 🦸‍♂️🍺

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

No branches or pull requests

2 participants