{"action":"closed","issue":{"url":"https://api.github.com/repos/Nozbe/WatermelonDB/issues/53","repository_url":"https://api.github.com/repos/Nozbe/WatermelonDB","labels_url":"https://api.github.com/repos/Nozbe/WatermelonDB/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/Nozbe/WatermelonDB/issues/53/comments","events_url":"https://api.github.com/repos/Nozbe/WatermelonDB/issues/53/events","html_url":"https://github.com/Nozbe/WatermelonDB/issues/53","id":362974174,"node_id":"MDU6SXNzdWUzNjI5NzQxNzQ=","number":53,"title":"Using `globalObject: 'this'` in ejected CRA webpack.config.dev breaks the webpack-dev-server","user":{"login":"alanbuchanan","id":10364894,"node_id":"MDQ6VXNlcjEwMzY0ODk0","avatar_url":"https://avatars3.githubusercontent.com/u/10364894?v=4","gravatar_id":"","url":"https://api.github.com/users/alanbuchanan","html_url":"https://github.com/alanbuchanan","followers_url":"https://api.github.com/users/alanbuchanan/followers","following_url":"https://api.github.com/users/alanbuchanan/following{/other_user}","gists_url":"https://api.github.com/users/alanbuchanan/gists{/gist_id}","starred_url":"https://api.github.com/users/alanbuchanan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanbuchanan/subscriptions","organizations_url":"https://api.github.com/users/alanbuchanan/orgs","repos_url":"https://api.github.com/users/alanbuchanan/repos","events_url":"https://api.github.com/users/alanbuchanan/events{/privacy}","received_events_url":"https://api.github.com/users/alanbuchanan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-23T20:21:53Z","updated_at":"2018-09-23T20:49:44Z","closed_at":"2018-09-23T20:49:44Z","author_association":"NONE","body":"### Description of Issue\r\nI am trying to set up a WatermelonDB project for web, by reading the documentation [here](https://github.com/Nozbe/WatermelonDB/blob/master/docs/Installation.md). I set up a create-react-app app and ejected (by running the `eject` script) to allow me to edit the webpack.config.dev file so that I can add the necessary lines of code. However, the build breaks when I add `globalObject: 'this'` to the `output` object.\r\n\r\n### Error message in console\r\n```\r\n> $ npm start                                                                                                                                                                                        \r\n\r\n> watermelon-test@0.1.0 start /Users/rorysmith/WebstormProjects/watermelon-test\r\n> node scripts/start.js\r\n\r\nFailed to compile.\r\n\r\nInvalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.\r\n - configuration.output has an unknown property 'globalObject'. These properties are valid:\r\n   object { auxiliaryComment?, chunkFilename?, crossOriginLoading?, chunkLoadTimeout?, devtoolFallbackModuleFilenameTemplate?, devtoolLineToLine?, devtoolModuleFilenameTemplate?, filename?, hashDigest?, hashDigestLength?, hashFunction?, hashSalt?, hotUpdateChunkFilename?, hotUpdateFunction?, hotUpdateMainFilename?, jsonpFunction?, library?, libraryTarget?, libraryExport?, path?, pathinfo?, publicPath?, sourceMapFilename?, sourcePrefix?, strictModuleExceptionHandling?, umdNamedDefine? }\r\n   Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.\r\n```\r\n\r\n### Expected Behaviour\r\nwebpack-dev-server not to crash.\r\n\r\n### Current Behaviour\r\nwebpack-dev-server crashes.\r\n\r\n### Possible Solution\r\nAdding `globalObject` to the API schema. How do I do this? I don't know much about webpack.\r\n\r\n### Context (Environment)\r\ncreate-react-app 1.5.2 which uses react 16.5.2, webpack 3.8.1 and  webpack-dev-server 2.11.3.\r\n\r\n"}}
{"actor":{"display_login":"alanbuchanan"}}