{"action":"opened","issue":{"url":"https://api.github.com/repos/mui-org/material-ui/issues/11942","repository_url":"https://api.github.com/repos/mui-org/material-ui","labels_url":"https://api.github.com/repos/mui-org/material-ui/issues/11942/labels{/name}","comments_url":"https://api.github.com/repos/mui-org/material-ui/issues/11942/comments","events_url":"https://api.github.com/repos/mui-org/material-ui/issues/11942/events","html_url":"https://github.com/mui-org/material-ui/issues/11942","id":334648880,"node_id":"MDU6SXNzdWUzMzQ2NDg4ODA=","number":11942,"title":"withStyles throws error when used with Snackbar","user":{"login":"celinrayen","id":31292288,"node_id":"MDQ6VXNlcjMxMjkyMjg4","avatar_url":"https://avatars2.githubusercontent.com/u/31292288?v=4","gravatar_id":"","url":"https://api.github.com/users/celinrayen","html_url":"https://github.com/celinrayen","followers_url":"https://api.github.com/users/celinrayen/followers","following_url":"https://api.github.com/users/celinrayen/following{/other_user}","gists_url":"https://api.github.com/users/celinrayen/gists{/gist_id}","starred_url":"https://api.github.com/users/celinrayen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celinrayen/subscriptions","organizations_url":"https://api.github.com/users/celinrayen/orgs","repos_url":"https://api.github.com/users/celinrayen/repos","events_url":"https://api.github.com/users/celinrayen/events{/privacy}","received_events_url":"https://api.github.com/users/celinrayen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-21T20:39:22Z","updated_at":"2018-06-21T20:39:22Z","closed_at":null,"author_association":"NONE","body":"\r\n- [x] This is a v1.x issue (v0.x is no longer maintained).\r\n- [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate.\r\n\r\nThe `withStyles` is not working when used with `Snackbar`. \r\nI'm trying this with the below versions. `withStyles` works perfectly fine in another component which wraps the `Button`. But while using `Snackbar` i receive the below issue.\r\n\r\n```\r\ncreateGenerateClassName.js:75 Uncaught TypeError: _prefix.replace is not a function\r\n    at createGenerateClassName.js:75\r\n    at RuleList.add (RuleList.js:109)\r\n    at new StyleSheet (StyleSheet.js:52)\r\n    at Jss.createStyleSheet (Jss.js:123)\r\n    at WithStyles.attach (withStyles.js:326)\r\n    at new WithStyles (withStyles.js:193)\r\n    at ReactCompositeComponent.js:294\r\n    at measureLifeCyclePerf (ReactCompositeComponent.js:75)\r\n    at ReactCompositeComponentWrapper._constructComponentWithoutOwner (ReactCompositeComponent.js:293)\r\n    at ReactCompositeComponentWrapper._constructComponent (ReactCompositeComponent.js:279)\r\n```\r\n\r\nThe same piece of code works fine if I return an empty object in the `style`. Am I missing anything?\r\n\r\n| Tech         | Version |\r\n|--------------|---------|\r\n| Material-UI  | 1.0.0-beta.47  |\r\n| React        | 15.6.1 |\r\n| browser      | chrome (67.0.3396.87) |\r\n"}}
{"actor":{"display_login":"celinrayen"}}