- Notifications
You must be signed in to change notification settings - Fork488
add undefined import tip to guide#365
base:master
Are you sure you want to change the base?
Conversation
Add troubleshooting tip for importing the default export in TypeScript.Easy mistake to make when migrating from JavaScript.
66d5fb1 todc4e448CompareDorianGrey commentedJul 30, 2018
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. |
nickserv commentedSep 1, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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