{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/5106","labels_url":"https://api.github.com/repos/eslint/eslint/issues/5106/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/5106/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/5106/events","html_url":"https://github.com/eslint/eslint/issues/5106","id":130009277,"number":5106,"title":"TypeError: Cannot read property 'match' of undefined","user":{"login":"Aweary","id":6886061,"avatar_url":"https://avatars.githubusercontent.com/u/6886061?v=3","gravatar_id":"","url":"https://api.github.com/users/Aweary","html_url":"https://github.com/Aweary","followers_url":"https://api.github.com/users/Aweary/followers","following_url":"https://api.github.com/users/Aweary/following{/other_user}","gists_url":"https://api.github.com/users/Aweary/gists{/gist_id}","starred_url":"https://api.github.com/users/Aweary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aweary/subscriptions","organizations_url":"https://api.github.com/users/Aweary/orgs","repos_url":"https://api.github.com/users/Aweary/repos","events_url":"https://api.github.com/users/Aweary/events{/privacy}","received_events_url":"https://api.github.com/users/Aweary/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/eslint/eslint/labels/proposal","name":"proposal","color":"fef2c0"},{"url":"https://api.github.com/repos/eslint/eslint/labels/rule","name":"rule","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-30T16:43:25Z","updated_at":"2016-01-30T16:56:22Z","closed_at":null,"body":"We're getting this error on Travis CI for some reason. The latests stable `eslint` release `1.10.3` is being used with node `4.2.6`\r\n\r\n```js\r\nTypeError: Cannot read property 'match' of undefined\r\n    at EventEmitter.removeInvalidNodeErrors (/home/travis/build/[path]/node_modules/eslint/lib/rules/no-irregular-whitespace.js:51:25)\r\n    at emitOne (events.js:82:20)\r\n    at EventEmitter.emit (events.js:169:7)\r\n    at NodeEventGenerator.enterNode (/home/travis/build/[path]/node_modules/eslint/lib/util/node-event-generator.js:42:22)\r\n    at CommentEventGenerator.enterNode (/home/travis/build/[path]/node_modules/eslint/lib/util/comment-event-generator.js:98:23)\r\n    at Controller.controller.traverse.enter (/home/travis/build/[path]/node_modules/eslint/lib/eslint.js:767:36)\r\n    at Controller.__execute (/home/travis/build/[path]/node_modules/eslint/node_modules/estraverse/estraverse.js:397:31)\r\n    at Controller.traverse (/home/travis/build/[path]/node_modules/eslint/node_modules/estraverse/estraverse.js:495:28)\r\n    at EventEmitter.module.exports.api.verify (/home/travis/build/[path]/node_modules/eslint/lib/eslint.js:764:24)\r\n    at processText (/home/travis/build/[path]/node_modules/eslint/lib/cli-engine.js:230:27)\r\n```\r\n\r\nOur `eslintConfig` in our `package.json` is as follow:\r\n\r\n```js\r\n  \"eslintConfig\": {\r\n    \"extends\": \"airbnb\",\r\n    \"rules\": {\r\n      \"comma-dangle\": [\r\n        2,\r\n        \"never\"\r\n      ],\r\n      \"no-trailing-spaces\": [\r\n        2,\r\n        {\r\n          \"skipBlankLines\": true\r\n        }\r\n      ],\r\n      \"block-spacing\": [\r\n        2,\r\n        \"never\"\r\n      ],\r\n      \"arrow-spacing\": [\r\n        2,\r\n        {\r\n          \"before\": true,\r\n          \"after\": true\r\n        }\r\n      ],\r\n      \"space-in-parens\": [\r\n        2,\r\n        \"never\"\r\n      ],\r\n      \"space-before-function-paren\": [\r\n        2,\r\n        \"never\"\r\n      ],\r\n      \"space-before-blocks\": [\r\n        2,\r\n        \"always\"\r\n      ],\r\n      \"space-after-keywords\": [\r\n        2,\r\n        \"always\"\r\n      ],\r\n      \"react/jsx-quotes\": 0,\r\n      \"jsx-quotes\": 0,\r\n      \"react/react-in-jsx-scope\": 0\r\n    }\r\n  },\r\n```\r\n\r\nThe stack trace seems to point towards this `if` statement:\r\n\r\n```js\r\nif (node.raw.match(irregularWhitespace) || node.raw.match(irregularLineTerminators)) {\r\n   removeStringError(node);\r\n }\r\n```\r\n\r\nWhich seems to indicate that `node.raw` is returned undefined. What are some potential root causes for something like this?\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/30365521-typeerror-cannot-read-property-match-of-undefined?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/177243909","html_url":"https://github.com/eslint/eslint/issues/5106#issuecomment-177243909","issue_url":"https://api.github.com/repos/eslint/eslint/issues/5106","id":177243909,"user":{"login":"Aweary","id":6886061,"avatar_url":"https://avatars.githubusercontent.com/u/6886061?v=3","gravatar_id":"","url":"https://api.github.com/users/Aweary","html_url":"https://github.com/Aweary","followers_url":"https://api.github.com/users/Aweary/followers","following_url":"https://api.github.com/users/Aweary/following{/other_user}","gists_url":"https://api.github.com/users/Aweary/gists{/gist_id}","starred_url":"https://api.github.com/users/Aweary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aweary/subscriptions","organizations_url":"https://api.github.com/users/Aweary/orgs","repos_url":"https://api.github.com/users/Aweary/repos","events_url":"https://api.github.com/users/Aweary/events{/privacy}","received_events_url":"https://api.github.com/users/Aweary/received_events","type":"User","site_admin":false},"created_at":"2016-01-30T16:56:22Z","updated_at":"2016-01-30T16:56:22Z","body":"`eslint` seems to lint properly if we remove `\"extend: \"airbnb\"`, which is where our `babel-eslint` dependency is coming from. It looks like `babel-eslint` is the culprit then."}}