{"action":"created","issue":{"url":"https://api.github.com/repos/gor181/react-chartjs-2/issues/55","repository_url":"https://api.github.com/repos/gor181/react-chartjs-2","labels_url":"https://api.github.com/repos/gor181/react-chartjs-2/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/gor181/react-chartjs-2/issues/55/comments","events_url":"https://api.github.com/repos/gor181/react-chartjs-2/issues/55/events","html_url":"https://github.com/gor181/react-chartjs-2/issues/55","id":187538101,"number":55,"title":"Window is not defined (uncaughtException)","user":{"login":"Rayane-Puzenat","id":6727063,"avatar_url":"https://avatars.githubusercontent.com/u/6727063?v=3","gravatar_id":"","url":"https://api.github.com/users/Rayane-Puzenat","html_url":"https://github.com/Rayane-Puzenat","followers_url":"https://api.github.com/users/Rayane-Puzenat/followers","following_url":"https://api.github.com/users/Rayane-Puzenat/following{/other_user}","gists_url":"https://api.github.com/users/Rayane-Puzenat/gists{/gist_id}","starred_url":"https://api.github.com/users/Rayane-Puzenat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rayane-Puzenat/subscriptions","organizations_url":"https://api.github.com/users/Rayane-Puzenat/orgs","repos_url":"https://api.github.com/users/Rayane-Puzenat/repos","events_url":"https://api.github.com/users/Rayane-Puzenat/events{/privacy}","received_events_url":"https://api.github.com/users/Rayane-Puzenat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-06T02:51:45Z","updated_at":"2016-11-08T14:21:16Z","closed_at":null,"body":"Hi,\r\n\r\nI am working on a _**no-isomorphic**_ app and I got this error. It's coming form the package react-chartjs-2 itself.\r\n\r\nError Log : \r\n\r\n```\r\n> myapp-front@1.0.0 start-dev /home/safran/Dev/Myapp/Admin\r\n> npm run build && NODE_ENV=development nodemon src/index.js --exec babel-node --presets es2015,stage-2 --ext js\r\n\r\n\r\n> myapp-front@1.0.0 build /home/safran/Dev/Myapp/Admin\r\n> webpack -d --progress\r\n\r\nHash: b444b947f5ab90805425  \r\nVersion: webpack 1.13.3\r\nTime: 5755ms\r\n\tAsset     \tSize  \t\tChunks               Chunk Names\r\n    app.bundle.js  \t3.14 MB       \t0  [emitted]  \t         main\r\napp.bundle.js.map  \t3.47 MB       \t0  [emitted]  \t         main\r\n\r\n   [0] multi main 64 bytes {0} [built]\r\n    + 1237 hidden modules\r\n\r\n[nodemon] 1.11.0\r\n[nodemon] to restart at any time, enter `rs`\r\n[nodemon] watching: *.*\r\n[nodemon] starting `babel-node src/index.js --presets es2015,stage-2`\r\n\r\n2016-11-06T02:39:23.046Z - error: uncaughtException: window is not defined date=Sat Nov 05 2016 22:39:23 GMT-0400 (EDT), pid=8993, uid=1000, gid=1000, cwd=/home/safran/Dev/Myapp/Admin, execPath=/home/safran/.nvm/versions/node/v6.0.0/bin/node, version=v6.0.0, argv=[node, /home/safran/Dev/Myapp/Admin/src/index.js, --presets, es2015,stage-2], rss=107520000, heapTotal=83120128, heapUsed=61719536, loadavg=[1.5400390625, 2.1279296875, 1.93115234375], uptime=7969, trace=[column=10, file=/home/safran/Dev/Myapp/Admin/node_modules/react-chartjs-2/node_modules/chart.js/src/core/core.helpers.js, function=null, line=676, method=null, native=false, column=3, file=/home/safran/Dev/Myapp/Admin/node_modules/react-chartjs-2/node_modules/chart.js/src/core/core.helpers.js, function=module.exports, line=684, method=exports, native=false, column=31, file=/home/safran/Dev/Myapp/Admin/node_modules/react-chartjs-2/node_modules/chart.js/src/chart.js, function=, line=6, method=null, native=false, column=32, file=module.js, function=Module._compile, line=541, method=_compile, native=false, column=10, file=module.js, function=Module._extensions..js, line=550, method=_extensions..js, native=false, column=7, file=/home/safran/Dev/Myapp/Admin/node_modules/babel-register/lib/node.js, function=Object.require.extensions.(anonymous function) [as .js], line=152, method=require.extensions.(anonymous function) [as .js], native=false, column=32, file=module.js, function=Module.load, line=456, method=load, native=false, column=12, file=module.js, function=tryModuleLoad, line=415, method=null, native=false, column=3, file=module.js, function=Function.Module._load, line=407, method=Module._load, native=false, column=17, file=module.js, function=Module.require, line=466, method=require, native=false], stack=[ReferenceError: window is not defined,     at /home/safran/Dev/Myapp/Admin/node_modules/react-chartjs-2/node_modules/chart.js/src/core/core.helpers.js:676:10,     at module.exports (/home/safran/Dev/Myapp/Admin/node_modules/react-chartjs-2/node_modules/chart.js/src/core/core.helpers.js:684:3),     at Object.<anonymous> (/home/safran/Dev/Myapp/Admin/node_modules/react-chartjs-2/node_modules/chart.js/src/chart.js:6:31),     at Module._compile (module.js:541:32),     at Module._extensions..js (module.js:550:10),     at Object.require.extensions.(anonymous function) [as .js] (/home/safran/Dev/Myapp/Admin/node_modules/babel-register/lib/node.js:152:7),     at Module.load (module.js:456:32),     at tryModuleLoad (module.js:415:12),     at Function.Module._load (module.js:407:3),     at Module.require (module.js:466:17)]\r\n\r\n[nodemon] clean exit - waiting for changes before restart\r\n```\r\n\r\nThank you for your help."},"comment":{"url":"https://api.github.com/repos/gor181/react-chartjs-2/issues/comments/259148503","html_url":"https://github.com/gor181/react-chartjs-2/issues/55#issuecomment-259148503","issue_url":"https://api.github.com/repos/gor181/react-chartjs-2/issues/55","id":259148503,"user":{"login":"gor181","id":8964589,"avatar_url":"https://avatars.githubusercontent.com/u/8964589?v=3","gravatar_id":"","url":"https://api.github.com/users/gor181","html_url":"https://github.com/gor181","followers_url":"https://api.github.com/users/gor181/followers","following_url":"https://api.github.com/users/gor181/following{/other_user}","gists_url":"https://api.github.com/users/gor181/gists{/gist_id}","starred_url":"https://api.github.com/users/gor181/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gor181/subscriptions","organizations_url":"https://api.github.com/users/gor181/orgs","repos_url":"https://api.github.com/users/gor181/repos","events_url":"https://api.github.com/users/gor181/events{/privacy}","received_events_url":"https://api.github.com/users/gor181/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T14:21:16Z","updated_at":"2016-11-08T14:21:16Z","body":"Hello,\r\n\r\nThere is a potential solution on this at: https://github.com/reactjs/react-chartjs/issues/57\r\nAs there is no window while doing server rendering we cannot do much as a part of this lib.\r\n\r\nThanks all for reporting 👍 "}}
{"actor":{"display_login":"gor181"}}