{"action":"opened","issue":{"url":"https://api.github.com/repos/Kinto/kinto.js/issues/849","repository_url":"https://api.github.com/repos/Kinto/kinto.js","labels_url":"https://api.github.com/repos/Kinto/kinto.js/issues/849/labels{/name}","comments_url":"https://api.github.com/repos/Kinto/kinto.js/issues/849/comments","events_url":"https://api.github.com/repos/Kinto/kinto.js/issues/849/events","html_url":"https://github.com/Kinto/kinto.js/issues/849","id":361391684,"node_id":"MDU6SXNzdWUzNjEzOTE2ODQ=","number":849,"title":"Adding Kinto to create-react-app breaks yarn build","user":{"login":"peterbe","id":26739,"node_id":"MDQ6VXNlcjI2NzM5","avatar_url":"https://avatars2.githubusercontent.com/u/26739?v=4","gravatar_id":"","url":"https://api.github.com/users/peterbe","html_url":"https://github.com/peterbe","followers_url":"https://api.github.com/users/peterbe/followers","following_url":"https://api.github.com/users/peterbe/following{/other_user}","gists_url":"https://api.github.com/users/peterbe/gists{/gist_id}","starred_url":"https://api.github.com/users/peterbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterbe/subscriptions","organizations_url":"https://api.github.com/users/peterbe/orgs","repos_url":"https://api.github.com/users/peterbe/repos","events_url":"https://api.github.com/users/peterbe/events{/privacy}","received_events_url":"https://api.github.com/users/peterbe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-18T16:44:20Z","updated_at":"2018-09-18T16:44:20Z","closed_at":null,"author_association":"NONE","body":"Steps to reproduce:\r\n\r\n```bash\r\n▶ cd /tmp\r\n▶ create-react-app my-kinto-app\r\n▶ cd my-kinto-app\r\n▶ yarn add kinto\r\n```\r\nThen edit `src/App.js` to something like this:\r\n```\r\n...\r\nimport Kinto from \"kinto\";\r\n\r\nclass App extends Component {\r\n   componentDidMount() {\r\n     this.db = new Kinto()\r\n   }\r\n...\r\n```\r\n(not sure if this is necessary because I don't know if CRA's treeshaking would remove the dependency when building)\r\n\r\n```bash\r\n▶ yarn build\r\nyarn run v1.9.4\r\n$ react-scripts build\r\nCreating an optimized production build...\r\nFailed to compile.\r\n\r\nModule not found: Error: Can't resolve '@babel/runtime/helpers/interopRequireDefault' in '/private/tmp/my-kinto-app/node_modules/kinto/lib'\r\n\r\n\r\nerror Command failed with exit code 1.\r\ninfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.\r\n\r\n```"}}
{"actor":{"display_login":"peterbe"}}