{"action":"created","issue":{"url":"https://api.github.com/repos/FormidableLabs/victory-native/issues/197","repository_url":"https://api.github.com/repos/FormidableLabs/victory-native","labels_url":"https://api.github.com/repos/FormidableLabs/victory-native/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/FormidableLabs/victory-native/issues/197/comments","events_url":"https://api.github.com/repos/FormidableLabs/victory-native/issues/197/events","html_url":"https://github.com/FormidableLabs/victory-native/issues/197","id":278645335,"number":197,"title":"[Line Chart] Crash with minified code: Can't find variable: a34414","user":{"login":"joncursi","id":4974609,"avatar_url":"https://avatars3.githubusercontent.com/u/4974609?v=4","gravatar_id":"","url":"https://api.github.com/users/joncursi","html_url":"https://github.com/joncursi","followers_url":"https://api.github.com/users/joncursi/followers","following_url":"https://api.github.com/users/joncursi/following{/other_user}","gists_url":"https://api.github.com/users/joncursi/gists{/gist_id}","starred_url":"https://api.github.com/users/joncursi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joncursi/subscriptions","organizations_url":"https://api.github.com/users/joncursi/orgs","repos_url":"https://api.github.com/users/joncursi/repos","events_url":"https://api.github.com/users/joncursi/events{/privacy}","received_events_url":"https://api.github.com/users/joncursi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-02T02:06:40Z","updated_at":"2017-12-02T03:47:30Z","closed_at":null,"author_association":"NONE","body":"I have a pretty basic line chart. When I render it in debug / production mode (doesn't matter which) UNMINIFIED, it renders properly:\r\n\r\n![screenshot_20171201-210507](https://user-images.githubusercontent.com/4974609/33510575-7db5b760-d6db-11e7-8304-2a38ffdb5c4c.png)\r\n\r\nBut when I render it in debug / production with MINIFIED code, I get a cryptic error:\r\n\r\n![screenshot_20171201-210153](https://user-images.githubusercontent.com/4974609/33510577-83ca3856-d6db-11e7-9622-075a081d345e.png)\r\n\r\nBecause this error only happens on minified code, I'm not even sure how to begin debugging this. Thoughts?\r\n\r\nVersions: \r\n\r\n```\r\n    \"react-native-svg\": \"6.0.0\",\r\n    \"victory\": \"0.24.2\",\r\n    \"victory-native\": \"0.16.1\"\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/FormidableLabs/victory-native/issues/comments/348665554","html_url":"https://github.com/FormidableLabs/victory-native/issues/197#issuecomment-348665554","issue_url":"https://api.github.com/repos/FormidableLabs/victory-native/issues/197","id":348665554,"user":{"login":"joncursi","id":4974609,"avatar_url":"https://avatars3.githubusercontent.com/u/4974609?v=4","gravatar_id":"","url":"https://api.github.com/users/joncursi","html_url":"https://github.com/joncursi","followers_url":"https://api.github.com/users/joncursi/followers","following_url":"https://api.github.com/users/joncursi/following{/other_user}","gists_url":"https://api.github.com/users/joncursi/gists{/gist_id}","starred_url":"https://api.github.com/users/joncursi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joncursi/subscriptions","organizations_url":"https://api.github.com/users/joncursi/orgs","repos_url":"https://api.github.com/users/joncursi/repos","events_url":"https://api.github.com/users/joncursi/events{/privacy}","received_events_url":"https://api.github.com/users/joncursi/received_events","type":"User","site_admin":false},"created_at":"2017-12-02T03:47:30Z","updated_at":"2017-12-02T03:47:30Z","author_association":"NONE","body":"Looking at the minified bundle and doing lots of digging, I'm able to trace this back to:\r\n\r\n```\r\nhttps://github.com/FormidableLabs/victory-chart/blob/b0cfdb55d5f8cb8610164effef74aa33bbe3f077/src/components/victory-chart/helper-methods.js#L78\r\n```\r\n\r\nWhen this code is minified in react native, the `axisOrientations` variable is NOT set, but is called upon, causing this error."}}
{"actor":{"display_login":"joncursi"}}