-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Basic] Import React "allowSyntheticDefaultImports" no longer valid #175
Comments
thanks for the heads up! however i think in this case i dont think your sources are as accurate as mine is... (which is dan rosenwasser) - make sure to read his tweet. i don't see any of these comments being aware of this nuance. |
Yeah, I almost decided to go with In that thread, Daniel Rosenwasser and another TypeScript contributor discuss this, and it seems like the merged PR that came from the issue makes It's also mentioned in the Compiler Options documentation under the
(honestly, I need further clarification on these two -- just wondering how they work after the above mentioned PR, and based on what the docs say) |
I wrote fresh docs for them both here BTW: https://www.typescriptlang.org/v2/en/tsconfig#allowSyntheticDefaultImports |
Thanks -- that cleared it up for me a lot. |
What cheatsheet is this about? (if applicable)
Basic cheatsheet
What's your issue or idea?
I think the paragraph in the doc about
--allowSyntheticDefaultImports
vsesModuleInterop
is no longer true. See the answers to this Stack Overflow question: https://stackoverflow.com/questions/52576203/do-i-ever-need-explicit-allowsyntheticdefaultimports-if-esmoduleinterop-is-true. Also see this now closed issue in the TypeScript GitHub discussing this: microsoft/TypeScript#26193.The text was updated successfully, but these errors were encountered: