{"action":"created","issue":{"url":"https://api.github.com/repos/Rich-Harris/tippex/issues/1","repository_url":"https://api.github.com/repos/Rich-Harris/tippex","labels_url":"https://api.github.com/repos/Rich-Harris/tippex/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Rich-Harris/tippex/issues/1/comments","events_url":"https://api.github.com/repos/Rich-Harris/tippex/issues/1/events","html_url":"https://github.com/Rich-Harris/tippex/issues/1","id":128146628,"number":1,"title":"TypeError: state is not a function","user":{"login":"Victorystick","id":703602,"avatar_url":"https://avatars.githubusercontent.com/u/703602?v=3","gravatar_id":"","url":"https://api.github.com/users/Victorystick","html_url":"https://github.com/Victorystick","followers_url":"https://api.github.com/users/Victorystick/followers","following_url":"https://api.github.com/users/Victorystick/following{/other_user}","gists_url":"https://api.github.com/users/Victorystick/gists{/gist_id}","starred_url":"https://api.github.com/users/Victorystick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Victorystick/subscriptions","organizations_url":"https://api.github.com/users/Victorystick/orgs","repos_url":"https://api.github.com/users/Victorystick/repos","events_url":"https://api.github.com/users/Victorystick/events{/privacy}","received_events_url":"https://api.github.com/users/Victorystick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-22T12:25:45Z","updated_at":"2016-04-20T14:01:45Z","closed_at":null,"body":"I'm using `tippex` in https://github.com/rollup/rollup-plugin-typescript, and encountered this error while attempting to bundle Angular2's TypeScript sources. I know it wasn't intended to be used on TypeScript, so the difference in grammars might explain the crash.\r\n\r\n```\r\nstate is not a function\r\nTypeError: state is not a function\r\n    at find (/Users/oskar/github/rollup-plugin-typescript/node_modules/tippex/www/tippex/src/index.js:134:11)\r\n    at Object.erase (/Users/oskar/github/rollup-plugin-typescript/node_modules/tippex/www/tippex/src/index.js:156:16)\r\n    at fix (/Users/oskar/github/rollup-plugin-typescript/dist/rollup-plugin-typescript.cjs.js:47:28)\r\n    at transform (/Users/oskar/github/rollup-plugin-typescript/dist/rollup-plugin-typescript.cjs.js:122:58)\r\n    at /Users/oskar/github/rollup/Users/oskar/github/rollup/src/utils/transform.js:18:28\r\n    at tryCatch (/Users/oskar/github/rollup/Users/oskar/github/rollup/node_modules/es6-promise/lib/es6-promise/-internal.js:182:12)\r\n    at invokeCallback (/Users/oskar/github/rollup/Users/oskar/github/rollup/node_modules/es6-promise/lib/es6-promise/-internal.js:194:13)\r\n    at /Users/oskar/github/rollup/Users/oskar/github/rollup/node_modules/es6-promise/lib/es6-promise/promise.js:376:9\r\n    at flush (/Users/oskar/github/rollup/Users/oskar/github/rollup/node_modules/es6-promise/lib/es6-promise/asap.js:88:5)\r\n    at doNTCallback0 (node.js:428:9)\r\n```"},"comment":{"url":"https://api.github.com/repos/Rich-Harris/tippex/issues/comments/212438284","html_url":"https://github.com/Rich-Harris/tippex/issues/1#issuecomment-212438284","issue_url":"https://api.github.com/repos/Rich-Harris/tippex/issues/1","id":212438284,"user":{"login":"Victorystick","id":703602,"avatar_url":"https://avatars.githubusercontent.com/u/703602?v=3","gravatar_id":"","url":"https://api.github.com/users/Victorystick","html_url":"https://github.com/Victorystick","followers_url":"https://api.github.com/users/Victorystick/followers","following_url":"https://api.github.com/users/Victorystick/following{/other_user}","gists_url":"https://api.github.com/users/Victorystick/gists{/gist_id}","starred_url":"https://api.github.com/users/Victorystick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Victorystick/subscriptions","organizations_url":"https://api.github.com/users/Victorystick/orgs","repos_url":"https://api.github.com/users/Victorystick/repos","events_url":"https://api.github.com/users/Victorystick/events{/privacy}","received_events_url":"https://api.github.com/users/Victorystick/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T14:01:45Z","updated_at":"2016-04-20T14:01:45Z","body":"@RReverser No, you're probably right. 😃 "}}