{"action":"created","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/10566","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/10566/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/10566/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/10566/events","html_url":"https://github.com/gatsbyjs/gatsby/issues/10566","id":392788487,"node_id":"MDU6SXNzdWUzOTI3ODg0ODc=","number":10566,"title":"warning in gatsby-plugin-emotion@4.0.0","user":{"login":"DSchau","id":3924690,"node_id":"MDQ6VXNlcjM5MjQ2OTA=","avatar_url":"https://avatars2.githubusercontent.com/u/3924690?v=4","gravatar_id":"","url":"https://api.github.com/users/DSchau","html_url":"https://github.com/DSchau","followers_url":"https://api.github.com/users/DSchau/followers","following_url":"https://api.github.com/users/DSchau/following{/other_user}","gists_url":"https://api.github.com/users/DSchau/gists{/gist_id}","starred_url":"https://api.github.com/users/DSchau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DSchau/subscriptions","organizations_url":"https://api.github.com/users/DSchau/orgs","repos_url":"https://api.github.com/users/DSchau/repos","events_url":"https://api.github.com/users/DSchau/events{/privacy}","received_events_url":"https://api.github.com/users/DSchau/received_events","type":"User","site_admin":false},"labels":[{"id":734600061,"node_id":"MDU6TGFiZWw3MzQ2MDAwNjE=","url":"https://api.github.com/repos/gatsbyjs/gatsby/labels/good%20first%20issue","name":"good first issue","color":"fcbfe3","default":true},{"id":1060772259,"node_id":"MDU6TGFiZWwxMDYwNzcyMjU5","url":"https://api.github.com/repos/gatsbyjs/gatsby/labels/no%20triage","name":"no triage","color":"0052cc","default":false},{"id":1038048834,"node_id":"MDU6TGFiZWwxMDM4MDQ4ODM0","url":"https://api.github.com/repos/gatsbyjs/gatsby/labels/status:%20confirmed","name":"status: confirmed","color":"adff60","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-19T21:42:45Z","updated_at":"2018-12-19T21:47:19Z","closed_at":"2018-12-19T21:47:19Z","author_association":"CONTRIBUTOR","body":"## Description\r\n\r\ngatsby-plugin-emotion uses an ES module for its `gatsby-node.js`. This is fine, except that this adds an export of `__esModule` to its transpiled file.\r\n\r\nThis throws an error in `gatsby develop`\r\n\r\n> Your plugins must export known APIs from their gatsby-node.js.\r\n> The following exports aren't APIs. Perhaps you made a typo or your plugin is outdated?\r\n>\r\n> See https://www.gatsbyjs.org/docs/node-apis/ for the list of Gatsby Node APIs\r\n>\r\n> - The plugin \"gatsby-plugin-emotion@4.0.1\" is exporting a variable named \"__esModule\" which isn't an API.\r\n\r\n## Fix\r\n\r\nWe should use Node.js exports, e.g. `exports.onCreateBabelConfig` instead of `onCreateBabelConfig` in [`gatsby-plugin-emotion/gatsby-node.js`](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-emotion/src/gatsby-node.js#L1)\r\n\r\n```diff\r\n- export const onCreateBabelConfig = ({ actions }, pluginOptions) => {\r\n+ exports.onCreateBabelConfig = ({ actions }, pluginOptions) => {\r\n  actions.setBabelPreset({\r\n    name: `@emotion/babel-preset-css-prop`,\r\n    options: {\r\n      sourceMap: process.env.NODE_ENV !== `production`,\r\n      autoLabel: process.env.NODE_ENV !== `production`,\r\n      ...(pluginOptions ? pluginOptions : {}),\r\n    },\r\n  })\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments/448755278","html_url":"https://github.com/gatsbyjs/gatsby/issues/10566#issuecomment-448755278","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/10566","id":448755278,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODc1NTI3OA==","user":{"login":"DSchau","id":3924690,"node_id":"MDQ6VXNlcjM5MjQ2OTA=","avatar_url":"https://avatars2.githubusercontent.com/u/3924690?v=4","gravatar_id":"","url":"https://api.github.com/users/DSchau","html_url":"https://github.com/DSchau","followers_url":"https://api.github.com/users/DSchau/followers","following_url":"https://api.github.com/users/DSchau/following{/other_user}","gists_url":"https://api.github.com/users/DSchau/gists{/gist_id}","starred_url":"https://api.github.com/users/DSchau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DSchau/subscriptions","organizations_url":"https://api.github.com/users/DSchau/orgs","repos_url":"https://api.github.com/users/DSchau/repos","events_url":"https://api.github.com/users/DSchau/events{/privacy}","received_events_url":"https://api.github.com/users/DSchau/received_events","type":"User","site_admin":false},"created_at":"2018-12-19T21:47:19Z","updated_at":"2018-12-19T21:47:19Z","author_association":"CONTRIBUTOR","body":"Whoops - we fixed this in a recent version of gatsby 😅 \r\n\r\nClosing out!"}}
{"actor":{"display_login":"DSchau"}}