{"action":"created","issue":{"url":"https://api.github.com/repos/ericf/express-handlebars/issues/125","labels_url":"https://api.github.com/repos/ericf/express-handlebars/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/ericf/express-handlebars/issues/125/comments","events_url":"https://api.github.com/repos/ericf/express-handlebars/issues/125/events","html_url":"https://github.com/ericf/express-handlebars/issues/125","id":69565074,"number":125,"title":"TypeError: Cannot use 'in' operator to search for 'data' in null","user":{"login":"lewiswalsh","id":1192147,"avatar_url":"https://avatars.githubusercontent.com/u/1192147?v=3","gravatar_id":"","url":"https://api.github.com/users/lewiswalsh","html_url":"https://github.com/lewiswalsh","followers_url":"https://api.github.com/users/lewiswalsh/followers","following_url":"https://api.github.com/users/lewiswalsh/following{/other_user}","gists_url":"https://api.github.com/users/lewiswalsh/gists{/gist_id}","starred_url":"https://api.github.com/users/lewiswalsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewiswalsh/subscriptions","organizations_url":"https://api.github.com/users/lewiswalsh/orgs","repos_url":"https://api.github.com/users/lewiswalsh/repos","events_url":"https://api.github.com/users/lewiswalsh/events{/privacy}","received_events_url":"https://api.github.com/users/lewiswalsh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ericf/express-handlebars/labels/handlebars","name":"handlebars","color":"ea8208"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-20T11:21:25Z","updated_at":"2015-04-21T18:28:12Z","closed_at":null,"body":"Getting a bizarre error I've not seen before. The only change I made was the way Git handles line endings, but I doubt that would cause it. Using Express-handlebars v2.0.0 when I try to \"res.render\" I get the following:\r\n```\r\nTypeError: Cannot use 'in' operator to search for 'data' in null \r\n    at Object.compile (.\\node_modules\\express-handlebars\\node_modules\\handlebars\\dist\\cjs\\handlebars\\compiler\\compiler.js:467:19)\r\n    at HandlebarsEnvironment.hb.compile (.\\node_modules\\express-handlebars\\node_modules\\handlebars\\dist\\cjs\\handlebars.js:34:41)\r\n    at ExpressHandlebars._compileTemplate (.\\node_modules\\express-handlebars\\lib\\express-handlebars.js:239:28)\r\n    at ExpressHandlebars.<anonymous> (.\\node_modules\\express-handlebars\\lib\\express-handlebars.js:124:25)\r\n```\r\n\r\nThe issue seems to be because line 124 is:\r\n`return this._compileTemplate(file, this.compilerOptions);`\r\n\r\nBut `compilerOptions` is set to `null` here on line 31:\r\n`compilerOptions: null,`\r\n\r\nAny help would be greatly appreciated.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ericf/express-handlebars/issues/comments/94896705","html_url":"https://github.com/ericf/express-handlebars/issues/125#issuecomment-94896705","issue_url":"https://api.github.com/repos/ericf/express-handlebars/issues/125","id":94896705,"user":{"login":"ee99ee","id":37464,"avatar_url":"https://avatars.githubusercontent.com/u/37464?v=3","gravatar_id":"","url":"https://api.github.com/users/ee99ee","html_url":"https://github.com/ee99ee","followers_url":"https://api.github.com/users/ee99ee/followers","following_url":"https://api.github.com/users/ee99ee/following{/other_user}","gists_url":"https://api.github.com/users/ee99ee/gists{/gist_id}","starred_url":"https://api.github.com/users/ee99ee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ee99ee/subscriptions","organizations_url":"https://api.github.com/users/ee99ee/orgs","repos_url":"https://api.github.com/users/ee99ee/repos","events_url":"https://api.github.com/users/ee99ee/events{/privacy}","received_events_url":"https://api.github.com/users/ee99ee/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T18:28:12Z","updated_at":"2015-04-21T18:28:12Z","body":"Sweet mother of Jesus, I have spent hours troubleshooting this issue... I thought I was going mad. Indeed, adding the workaround mentioned in [handlebars.js Issue 1003](https://github.com/wycats/handlebars.js/issues/1003) worked for me as well. What a pain!"}}