Conversation
Add troubleshooting tip for importing the default export in TypeScript. Easy mistake to make when migrating from JavaScript.
66d5fb1 to
dc4e448
Compare
|
Sorry for the delay ... had a lot of things to do recently. This description lacks some details and potential alternative suggestions. This only works in case the package However, there are two ways to synthesize the default export:
Both synthesize the default export of a module to I have to admit that I'm not sure if a description about this topic should be added here, since it is a more general issue - yet it might be helpful. |
|
I'm starting to feel that esModuleInterop should be in the default tsconfig template, so we can keep CRA's default generated imports and avoid confusing users new to TS. |
Add troubleshooting tip for importing the default export in TypeScript.
Easy mistake to make when migrating from JavaScript.
See: #364