{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/1090","repository_url":"https://api.github.com/repos/webpack/webpack-dev-server","labels_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/1090/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/1090/comments","events_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/1090/events","html_url":"https://github.com/webpack/webpack-dev-server/issues/1090","id":257845276,"number":1090,"title":"`eval-source-map` results in \"Can't find variable: SockJS\" in Safari on Mac and iOS with v2.8.x","user":{"login":"deedubbu","id":782384,"avatar_url":"https://avatars3.githubusercontent.com/u/782384?v=4","gravatar_id":"","url":"https://api.github.com/users/deedubbu","html_url":"https://github.com/deedubbu","followers_url":"https://api.github.com/users/deedubbu/followers","following_url":"https://api.github.com/users/deedubbu/following{/other_user}","gists_url":"https://api.github.com/users/deedubbu/gists{/gist_id}","starred_url":"https://api.github.com/users/deedubbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deedubbu/subscriptions","organizations_url":"https://api.github.com/users/deedubbu/orgs","repos_url":"https://api.github.com/users/deedubbu/repos","events_url":"https://api.github.com/users/deedubbu/events{/privacy}","received_events_url":"https://api.github.com/users/deedubbu/received_events","type":"User","site_admin":false},"labels":[{"id":428244647,"url":"https://api.github.com/repos/webpack/webpack-dev-server/labels/S5:%20Regression","name":"S5: Regression","color":"0052cc","default":false},{"id":429795462,"url":"https://api.github.com/repos/webpack/webpack-dev-server/labels/X0:%20need%20more%20information","name":"X0: need more information","color":"d4c5f9","default":false},{"id":437042654,"url":"https://api.github.com/repos/webpack/webpack-dev-server/labels/X5:%20PR%20welcome","name":"X5: PR welcome","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-09-14T20:23:41Z","updated_at":"2017-11-14T11:40:21Z","closed_at":"2017-10-22T14:00:49Z","author_association":"NONE","body":"* Operating System: macOS 10.12.6\r\n* Node Version: v7.10.0\r\n* NPM Version: 4.2.0\r\n* webpack Version: 2.7.0\r\n* webpack-dev-server Version: 2.8.2\r\n\r\n- [ ] This is a **feature** request\r\n- [x] This is a **bug**\r\n\r\n### Code\r\n\r\nSample code [here](https://gist.github.com/deedubbu/491333802fc1a354790049e3de954098)\r\n\r\n### Expected Behavior\r\n\r\nUsing the `eval-source-map` option for `devtool` should not affect the ability to render the page.\r\n\r\n### Actual Behavior\r\n\r\nWith version `2.8.x` it seems like specifying `eval-source-map` for `devtool` is causing an error that is preventing rendering on Safari on Mac and iOS. Rendering seems fine on Chrome/Firefox, but when loading the page in Safari I'm getting:\r\n\r\n`ReferenceError: Can't find variable: SockJS`\r\n\r\nI suspect something in the \"Cleanup Effort\" commit might have broke this but haven't identified what. Maybe something to do with [uglifyJS plugin being added](https://github.com/webpack/webpack-dev-server/commit/69239ce854dd0a4bdb752fbd78c47c348aa9f900#diff-2b001bfedea193a6145a826d21c8d65dR7)\r\n\r\n### How can we reproduce the behavior?\r\n\r\nThe [gist](https://gist.github.com/deedubbu/491333802fc1a354790049e3de954098) has a complete code sample that exhibits the issue:\r\n\r\n1. Download the gist code.\r\n2. `npm install`\r\n3. `npm start`\r\n4. Load `localhost:8000` in Safari and open dev tools console to see error. Notice the page doesn't render either.\r\n5. Kill the `npm start`\r\n6. Open `webpack.config.js` and remove `devtool: 'eval-source-map'`.\r\n7. `npm start`\r\n8. Load `localhost:8000` in Safari and notice it now renders and the dev tools console is clean.\r\n"},"comment":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/comments/344232948","html_url":"https://github.com/webpack/webpack-dev-server/issues/1090#issuecomment-344232948","issue_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/1090","id":344232948,"user":{"login":"lakinmohapatra","id":11457501,"avatar_url":"https://avatars0.githubusercontent.com/u/11457501?v=4","gravatar_id":"","url":"https://api.github.com/users/lakinmohapatra","html_url":"https://github.com/lakinmohapatra","followers_url":"https://api.github.com/users/lakinmohapatra/followers","following_url":"https://api.github.com/users/lakinmohapatra/following{/other_user}","gists_url":"https://api.github.com/users/lakinmohapatra/gists{/gist_id}","starred_url":"https://api.github.com/users/lakinmohapatra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lakinmohapatra/subscriptions","organizations_url":"https://api.github.com/users/lakinmohapatra/orgs","repos_url":"https://api.github.com/users/lakinmohapatra/repos","events_url":"https://api.github.com/users/lakinmohapatra/events{/privacy}","received_events_url":"https://api.github.com/users/lakinmohapatra/received_events","type":"User","site_admin":false},"created_at":"2017-11-14T11:40:21Z","updated_at":"2017-11-14T11:40:21Z","author_association":"NONE","body":"I want this to be fixed on Safari 10 .\r\nHow to fix this ? "}}
{"actor":{"display_login":"lakinmohapatra"}}