{"action":"created","issue":{"url":"https://api.github.com/repos/fable-compiler/fable-react/issues/92","repository_url":"https://api.github.com/repos/fable-compiler/fable-react","labels_url":"https://api.github.com/repos/fable-compiler/fable-react/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/fable-compiler/fable-react/issues/92/comments","events_url":"https://api.github.com/repos/fable-compiler/fable-react/issues/92/events","html_url":"https://github.com/fable-compiler/fable-react/pull/92","id":339246541,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5OTU0Mjc2","number":92,"title":"Put more emphasis on there being multiple exports/imports, add example for default import","user":{"login":"0x53A","id":4236651,"node_id":"MDQ6VXNlcjQyMzY2NTE=","avatar_url":"https://avatars3.githubusercontent.com/u/4236651?v=4","gravatar_id":"","url":"https://api.github.com/users/0x53A","html_url":"https://github.com/0x53A","followers_url":"https://api.github.com/users/0x53A/followers","following_url":"https://api.github.com/users/0x53A/following{/other_user}","gists_url":"https://api.github.com/users/0x53A/gists{/gist_id}","starred_url":"https://api.github.com/users/0x53A/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0x53A/subscriptions","organizations_url":"https://api.github.com/users/0x53A/orgs","repos_url":"https://api.github.com/users/0x53A/repos","events_url":"https://api.github.com/users/0x53A/events{/privacy}","received_events_url":"https://api.github.com/users/0x53A/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-08T18:26:57Z","updated_at":"2018-07-08T21:39:58Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/fable-compiler/fable-react/pulls/92","html_url":"https://github.com/fable-compiler/fable-react/pull/92","diff_url":"https://github.com/fable-compiler/fable-react/pull/92.diff","patch_url":"https://github.com/fable-compiler/fable-react/pull/92.patch"},"body":"I was really frustrated why I just imported ``undefined`` until I compared the generated Javascript against the example and noticed the extra ``{`` ``}``.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fable-compiler/fable-react/issues/comments/403319280","html_url":"https://github.com/fable-compiler/fable-react/pull/92#issuecomment-403319280","issue_url":"https://api.github.com/repos/fable-compiler/fable-react/issues/92","id":403319280,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzMxOTI4MA==","user":{"login":"alfonsogarciacaro","id":8275461,"node_id":"MDQ6VXNlcjgyNzU0NjE=","avatar_url":"https://avatars0.githubusercontent.com/u/8275461?v=4","gravatar_id":"","url":"https://api.github.com/users/alfonsogarciacaro","html_url":"https://github.com/alfonsogarciacaro","followers_url":"https://api.github.com/users/alfonsogarciacaro/followers","following_url":"https://api.github.com/users/alfonsogarciacaro/following{/other_user}","gists_url":"https://api.github.com/users/alfonsogarciacaro/gists{/gist_id}","starred_url":"https://api.github.com/users/alfonsogarciacaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfonsogarciacaro/subscriptions","organizations_url":"https://api.github.com/users/alfonsogarciacaro/orgs","repos_url":"https://api.github.com/users/alfonsogarciacaro/repos","events_url":"https://api.github.com/users/alfonsogarciacaro/events{/privacy}","received_events_url":"https://api.github.com/users/alfonsogarciacaro/received_events","type":"User","site_admin":false},"created_at":"2018-07-08T21:39:57Z","updated_at":"2018-07-08T21:39:57Z","author_association":"MEMBER","body":"Thanks @0x53A! Yes, you're right. This is a problem that has hit many users (myself included). I still don't know if there's a way to type check this somehow (it's very unfortunate that Webpack doesn't display a good error message in these cases).\r\n\r\nInstead of using `createElement(importDefault \"foo\", [], [])` it's also possible to just do `ofImport \"default\" \"foo\" [] []`.  Maybe we should recommend that instead? Actually I tried to do that in [latest Fable docs](https://github.com/fable-compiler/Fable/blob/2cd894d09a796a0ca805fe9326b9d7c28a210242/docs/interacting.md#importing-javascript-code) but I just noticed I forgot to update the website 🤦‍♂️ If you could update the PR @0x53A that'd be great, but I can also do it if you don't have time."}}
{"actor":{"display_login":"alfonsogarciacaro"}}