{"action":"created","issue":{"url":"https://api.github.com/repos/wycats/handlebars.js/issues/1003","labels_url":"https://api.github.com/repos/wycats/handlebars.js/issues/1003/labels{/name}","comments_url":"https://api.github.com/repos/wycats/handlebars.js/issues/1003/comments","events_url":"https://api.github.com/repos/wycats/handlebars.js/issues/1003/events","html_url":"https://github.com/wycats/handlebars.js/issues/1003","id":69620100,"number":1003,"title":"TypeError: Cannot use 'in' operator to search for 'data' in null","user":{"login":"anis-moubarik","id":390902,"avatar_url":"https://avatars.githubusercontent.com/u/390902?v=3","gravatar_id":"","url":"https://api.github.com/users/anis-moubarik","html_url":"https://github.com/anis-moubarik","followers_url":"https://api.github.com/users/anis-moubarik/followers","following_url":"https://api.github.com/users/anis-moubarik/following{/other_user}","gists_url":"https://api.github.com/users/anis-moubarik/gists{/gist_id}","starred_url":"https://api.github.com/users/anis-moubarik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anis-moubarik/subscriptions","organizations_url":"https://api.github.com/users/anis-moubarik/orgs","repos_url":"https://api.github.com/users/anis-moubarik/repos","events_url":"https://api.github.com/users/anis-moubarik/events{/privacy}","received_events_url":"https://api.github.com/users/anis-moubarik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-20T16:01:46Z","updated_at":"2015-04-21T04:19:27Z","closed_at":null,"body":"I got the following error.\r\n`TypeError: Cannot use 'in' operator to search for 'data' in null\r\n    at Object.compile (/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:467:19)\r\n    at HandlebarsEnvironment.hb.compile (/node_modules/handlebars/dist/cjs/handlebars.js:34:41)\r\n    at ExpressHandlebars._compileTemplate (/lib/express-handlebars.js:239:28)\r\n    at ExpressHandlebars.<anonymous> (/lib/express-handlebars.js:124:25)\r\n    at /promise/lib/core.js:33:15\r\n    at flush (//node_modules/promise/node_modules/asap/asap.js:27:13)\r\n    at process._tickCallback (node.js:419:13)`\r\n\r\nAfter a bit of searching I found out that the file in the dist folder (compiler.js) missed the `options = options || {}` thus giving the null error. Adding that line solves the error. (The same code worked with 3.0.1 and stopped working with 3.0.2).\r\n\r\nFurther inspection shows handlebars/lib/handlebars/compiler/compiler.js:448 the compile functions parameter options = {}, is the problem. I'm using express and express-handlebars, and they don't support es6? Not sure."},"comment":{"url":"https://api.github.com/repos/wycats/handlebars.js/issues/comments/94633599","html_url":"https://github.com/wycats/handlebars.js/issues/1003#issuecomment-94633599","issue_url":"https://api.github.com/repos/wycats/handlebars.js/issues/1003","id":94633599,"user":{"login":"anis-moubarik","id":390902,"avatar_url":"https://avatars.githubusercontent.com/u/390902?v=3","gravatar_id":"","url":"https://api.github.com/users/anis-moubarik","html_url":"https://github.com/anis-moubarik","followers_url":"https://api.github.com/users/anis-moubarik/followers","following_url":"https://api.github.com/users/anis-moubarik/following{/other_user}","gists_url":"https://api.github.com/users/anis-moubarik/gists{/gist_id}","starred_url":"https://api.github.com/users/anis-moubarik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anis-moubarik/subscriptions","organizations_url":"https://api.github.com/users/anis-moubarik/orgs","repos_url":"https://api.github.com/users/anis-moubarik/repos","events_url":"https://api.github.com/users/anis-moubarik/events{/privacy}","received_events_url":"https://api.github.com/users/anis-moubarik/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T04:19:27Z","updated_at":"2015-04-21T04:19:27Z","body":"@kpdecker thanks, that's a good workaround."}}