{"action":"created","issue":{"url":"https://api.github.com/repos/ianstormtaylor/slate/issues/493","repository_url":"https://api.github.com/repos/ianstormtaylor/slate","labels_url":"https://api.github.com/repos/ianstormtaylor/slate/issues/493/labels{/name}","comments_url":"https://api.github.com/repos/ianstormtaylor/slate/issues/493/comments","events_url":"https://api.github.com/repos/ianstormtaylor/slate/issues/493/events","html_url":"https://github.com/ianstormtaylor/slate/issues/493","id":193212761,"number":493,"title":"Uncaught TypeError: Cannot read property 'getRanges' / 'nodeType' of undefined","user":{"login":"bkniffler","id":4349324,"avatar_url":"https://avatars.githubusercontent.com/u/4349324?v=3","gravatar_id":"","url":"https://api.github.com/users/bkniffler","html_url":"https://github.com/bkniffler","followers_url":"https://api.github.com/users/bkniffler/followers","following_url":"https://api.github.com/users/bkniffler/following{/other_user}","gists_url":"https://api.github.com/users/bkniffler/gists{/gist_id}","starred_url":"https://api.github.com/users/bkniffler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkniffler/subscriptions","organizations_url":"https://api.github.com/users/bkniffler/orgs","repos_url":"https://api.github.com/users/bkniffler/repos","events_url":"https://api.github.com/users/bkniffler/events{/privacy}","received_events_url":"https://api.github.com/users/bkniffler/received_events","type":"User","site_admin":false},"labels":[{"id":404055005,"url":"https://api.github.com/repos/ianstormtaylor/slate/labels/bug","name":"bug","color":"f9d0c4","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-02T20:40:21Z","updated_at":"2016-12-03T01:07:23Z","closed_at":null,"body":"Hi, \r\nIs no one else stumbling across these two?\r\n- Cannot read property 'getRanges' of undefined\r\n- Cannot read property 'nodeType' of undefined\r\n\r\nI'm seeing those regularly. I've not been able to reproduce them in an isolated environment yet, but I suppose its got something to do with custom blocks. I'm going to try and find out more, but I hoped that someone else might already have seen it? Or maybe you already got an idea @ianstormtaylor?\r\n\r\nGifs:\r\n![dez -02-2016 20-38-15](https://cloud.githubusercontent.com/assets/4349324/20849595/5cbd4d00-b8cf-11e6-94fc-21dc81dd27fd.gif)\r\n![dez -02-2016 20-38-33](https://cloud.githubusercontent.com/assets/4349324/20849594/5cbbc17e-b8cf-11e6-907e-f3cace5ad750.gif)\r\n\r\nStacktraces:\r\n```\r\nUncaught TypeError: Cannot read property 'getRanges' of undefined\r\n    at Content.getPoint (http://localhost:3011/client/index.js:189565:24)\r\n    at onSelect (http://localhost:3011/client/index.js:190136:29)\r\n    at Object.ReactErrorUtils.invokeGuardedCallback (http://localhost:3011/client/index.js:59128:16)\r\n    at executeDispatch (http://localhost:3011/client/index.js:58657:21)\r\n    at Object.executeDispatchesInOrder (http://localhost:3011/client/index.js:58680:5)\r\n    at executeDispatchesAndRelease (http://localhost:3011/client/index.js:38239:22)\r\n    at executeDispatchesAndReleaseTopLevel (http://localhost:3011/client/index.js:38250:10)\r\n    at Array.forEach (native)\r\n    at forEachAccumulated (http://localhost:3011/client/index.js:95025:9)\r\n    at Object.processEventQueue (http://localhost:3011/client/index.js:38453:7)\r\ngetPoint @ content.js:157\r\nonSelect @ content.js:728\r\nReactErrorUtils.invokeGuardedCallback @ ReactErrorUtils.js:70\r\nexecuteDispatch @ EventPluginUtils.js:85\r\nexecuteDispatchesInOrder @ EventPluginUtils.js:108\r\nexecuteDispatchesAndRelease @ EventPluginHub.js:43\r\nexecuteDispatchesAndReleaseTopLevel @ EventPluginHub.js:54\r\nforEachAccumulated @ forEachAccumulated.js:24\r\nprocessEventQueue @ EventPluginHub.js:257\r\nrunEventQueueInBatch @ ReactEventEmitterMixin.js:17\r\nhandleTopLevel @ ReactEventEmitterMixin.js:28\r\nhandleTopLevelImpl @ ReactEventListener.js:72\r\nperform @ Transaction.js:140\r\nbatchedUpdates @ ReactDefaultBatchingStrategy.js:62\r\nbatchedUpdates @ ReactUpdates.js:97\r\ndispatchEvent @ ReactEventListener.js:147\r\nindex.js:239 [] [Object, Object]\r\n```\r\n\r\n```\r\nnormalize-node-and-offset.js:57 Uncaught TypeError: Cannot read property 'nodeType' of undefined\r\n    at getNonComment (http://localhost:3011/client/index.js:197519:15)\r\n    at normalizeNodeAndOffset (http://localhost:3011/client/index.js:197485:12)\r\n    at Object.findKey (http://localhost:3011/client/index.js:65459:68)\r\n    at Content.getPoint (http://localhost:3011/client/index.js:189560:43)\r\n    at onSelect (http://localhost:3011/client/index.js:190136:29)\r\n    at Object.ReactErrorUtils.invokeGuardedCallback (http://localhost:3011/client/index.js:59128:16)\r\n    at executeDispatch (http://localhost:3011/client/index.js:58657:21)\r\n    at Object.executeDispatchesInOrder (http://localhost:3011/client/index.js:58680:5)\r\n    at executeDispatchesAndRelease (http://localhost:3011/client/index.js:38239:22)\r\n    at executeDispatchesAndReleaseTopLevel (http://localhost:3011/client/index.js:38250:10)\r\ngetNonComment @ normalize-node-and-offset.js:57\r\nnormalizeNodeAndOffset @ normalize-node-and-offset.js:23\r\nfindKey @ offset-key.js:68\r\ngetPoint @ content.js:152\r\nonSelect @ content.js:728\r\nReactErrorUtils.invokeGuardedCallback @ ReactErrorUtils.js:70\r\nexecuteDispatch @ EventPluginUtils.js:85\r\nexecuteDispatchesInOrder @ EventPluginUtils.js:108\r\nexecuteDispatchesAndRelease @ EventPluginHub.js:43\r\nexecuteDispatchesAndReleaseTopLevel @ EventPluginHub.js:54\r\nforEachAccumulated @ forEachAccumulated.js:24\r\nprocessEventQueue @ EventPluginHub.js:257\r\nrunEventQueueInBatch @ ReactEventEmitterMixin.js:17\r\nhandleTopLevel @ ReactEventEmitterMixin.js:28\r\nhandleTopLevelImpl @ ReactEventListener.js:72\r\nperform @ Transaction.js:140\r\nbatchedUpdates @ ReactDefaultBatchingStrategy.js:62\r\nbatchedUpdates @ ReactUpdates.js:97\r\ndispatchEvent @ ReactEventListener.js:147\r\n```"},"comment":{"url":"https://api.github.com/repos/ianstormtaylor/slate/issues/comments/264602719","html_url":"https://github.com/ianstormtaylor/slate/issues/493#issuecomment-264602719","issue_url":"https://api.github.com/repos/ianstormtaylor/slate/issues/493","id":264602719,"user":{"login":"ianstormtaylor","id":311752,"avatar_url":"https://avatars.githubusercontent.com/u/311752?v=3","gravatar_id":"","url":"https://api.github.com/users/ianstormtaylor","html_url":"https://github.com/ianstormtaylor","followers_url":"https://api.github.com/users/ianstormtaylor/followers","following_url":"https://api.github.com/users/ianstormtaylor/following{/other_user}","gists_url":"https://api.github.com/users/ianstormtaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/ianstormtaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianstormtaylor/subscriptions","organizations_url":"https://api.github.com/users/ianstormtaylor/orgs","repos_url":"https://api.github.com/users/ianstormtaylor/repos","events_url":"https://api.github.com/users/ianstormtaylor/events{/privacy}","received_events_url":"https://api.github.com/users/ianstormtaylor/received_events","type":"User","site_admin":false},"created_at":"2016-12-03T01:07:23Z","updated_at":"2016-12-03T01:07:23Z","body":"For the first error, I've got an update: I've got a similar error being thrown in my own codebase now, so it might be for the same reason. \r\n\r\nI've just pushed up `0.16.1`, so see if that solves your issue!"}}
{"actor":{"display_login":"ianstormtaylor"}}