{"action":"created","issue":{"url":"https://api.github.com/repos/krakenjs/kraken-js/issues/335","labels_url":"https://api.github.com/repos/krakenjs/kraken-js/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/krakenjs/kraken-js/issues/335/comments","events_url":"https://api.github.com/repos/krakenjs/kraken-js/issues/335/events","html_url":"https://github.com/krakenjs/kraken-js/issues/335","id":58380791,"number":335,"title":"Error page Template Render Issue","user":{"login":"tomalex0","id":208168,"avatar_url":"https://avatars.githubusercontent.com/u/208168?v=3","gravatar_id":"","url":"https://api.github.com/users/tomalex0","html_url":"https://github.com/tomalex0","followers_url":"https://api.github.com/users/tomalex0/followers","following_url":"https://api.github.com/users/tomalex0/following{/other_user}","gists_url":"https://api.github.com/users/tomalex0/gists{/gist_id}","starred_url":"https://api.github.com/users/tomalex0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomalex0/subscriptions","organizations_url":"https://api.github.com/users/tomalex0/orgs","repos_url":"https://api.github.com/users/tomalex0/repos","events_url":"https://api.github.com/users/tomalex0/events{/privacy}","received_events_url":"https://api.github.com/users/tomalex0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/krakenjs/kraken-js/labels/in%20progress","name":"in progress","color":"fbca04"},{"url":"https://api.github.com/repos/krakenjs/kraken-js/labels/support","name":"support","color":"006b75"}],"state":"closed","locked":false,"assignee":{"login":"jasisk","id":62923,"avatar_url":"https://avatars.githubusercontent.com/u/62923?v=3","gravatar_id":"","url":"https://api.github.com/users/jasisk","html_url":"https://github.com/jasisk","followers_url":"https://api.github.com/users/jasisk/followers","following_url":"https://api.github.com/users/jasisk/following{/other_user}","gists_url":"https://api.github.com/users/jasisk/gists{/gist_id}","starred_url":"https://api.github.com/users/jasisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasisk/subscriptions","organizations_url":"https://api.github.com/users/jasisk/orgs","repos_url":"https://api.github.com/users/jasisk/repos","events_url":"https://api.github.com/users/jasisk/events{/privacy}","received_events_url":"https://api.github.com/users/jasisk/received_events","type":"User","site_admin":false},"milestone":null,"comments":19,"created_at":"2015-02-20T17:04:16Z","updated_at":"2015-03-12T15:50:34Z","closed_at":"2015-03-12T15:50:34Z","body":"I'm trying to run app in `development` mode with templates pointed to `.build\\templates` folder, dust files are converted to js (`.build\\templates\\US\\en`) and  home  page is loaded fine \r\n\r\nBut if i try to  enter wrong url for which i'm expecting 404, but below error is shown( everything used worked fine  in dust mode  (`public\\templates`) )\r\n```\r\n\r\nNot sure if i'm  missing any config \r\n\r\nError: Could not load template \r\n    at Object.onLoad (c:\\Projects\\myapp\\node_modules\\engine-munger\\view\\js.js:38:22)\r\n    at Object.cache.get (c:\\Projects\\myapp\\node_modules\\engine-munger\\lib\\cache.js:59:14)\r\n    at spclOnLoad (c:\\Projects\\myapp\\node_modules\\engine-munger\\lib\\munger.js:75:9)\r\n    at c:\\Projects\\myapp\\node_modules\\adaro\\lib\\reader\\file.js:62:16\r\n    at onChunk (c:\\Projects\\myapp\\node_modules\\adaro\\lib\\patch\\index.js:69:29)\r\n    at Chunk.map (c:\\Projects\\myapp\\node_modules\\dustjs-linkedin\\lib\\dust.js:587:7)\r\n    at c:\\Projects\\myapp\\node_modules\\adaro\\lib\\patch\\index.js:91:39\r\n    at Object.dust.load [as __cabbage__] (c:\\Projects\\myapp\\node_modules\\dustjs-linkedin\\lib\\dust.js:137:14)\r\n    at Object.cabbage [as load] (c:\\Projects\\myapp\\node_modules\\adaro\\lib\\patch\\index.js:98:21)\r\n    at Object.dust.render (c:\\Projects\\myapp\\node_modules\\dustjs-linkedin\\lib\\dust.js:92:12)\r\n```\r\n\r\nThis is how my config looks\r\n```\r\n\"express\": {\r\n        \"view cache\": false,\r\n        \"view engine\": \"js\",\r\n        \"views\": \"path:./.build/templates\"\r\n    },\r\n\"i18n\": {\r\n        \"contentPath\": \"path:./locales\",\r\n        \"fallback\": \"en-US\"\r\n    },\r\n\"view engines\": {\r\n        \"js\": {\r\n            \"module\": \"engine-munger\",\r\n            \"renderer\": {\r\n                \"method\": \"js\",\r\n                \"arguments\": [\r\n                    { \"cache\": true },\r\n                    {\r\n                        \"views\": \"config:express.views\",\r\n                        \"view engine\": \"config:express.view engine\",\r\n                        \"specialization\": \"config:specialization\",\r\n                        \"i18n\": \"config:i18n\"\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    },\r\n\"middleware\": {\r\n\r\n        \"static\": {\r\n            \"module\": {\r\n                \"arguments\": [ \"path:./.build\" ]\r\n            }\r\n        },\r\n        \"compress\" : {\r\n            \"enabled\": true,\r\n            \"priority\": 10,\r\n            \"module\" : \"compression\"\r\n        },\r\n        \"router\": {\r\n            \"module\": {\r\n                \"arguments\": [\r\n                    { \"directory\": \"path:./routes\" }\r\n                ]\r\n            }\r\n        },\r\n\r\n        \r\n        \"expressView\": {\r\n            \"priority\": 100,\r\n            \"enabled\": true,\r\n            \"module\": {\r\n                \"name\": \"engine-munger/lib/expressView\"\r\n            }\r\n        },\r\n        \r\n\r\n        \"fileNotFound\": {\r\n            \"enabled\": true,\r\n            \"priority\": 130,\r\n            \"module\": {\r\n                \"name\": \"kraken-js/middleware/404\",\r\n                \"arguments\": [ \"errors/404\" ]\r\n            }\r\n        },\r\n\r\n        \"serverError\": {\r\n            \"enabled\": true,\r\n            \"priority\": 140,\r\n            \"module\": {\r\n                \"name\": \"kraken-js/middleware/500\",\r\n                \"arguments\": [ \"errors/500\" ]\r\n            }\r\n        },\r\n\r\n        \"accessDenied\": {\r\n            \"enabled\": true,\r\n            \"priority\": 150,\r\n            \"module\": {\r\n                \"name\": \"path:./lib/403\",\r\n                \"arguments\": [ \"errors/403\" ]\r\n            }\r\n        },\r\n        \"logger\": {\r\n            \"module\": {\r\n                \"name\": \"morgan\",\r\n                \"arguments\": [\r\n                    \":remote-addr - :remote-user [:date[clf]] ':method :url HTTP/:http-version' :status :res[content-length] ':referrer' ':user-agent' :req[header] :res[header] :response-time ms\"\r\n                ]\r\n            }\r\n        },\r\n        \"appsec\": {\r\n            \"enabled\": true,\r\n            \"priority\": 111,\r\n            \"module\": {\r\n                \"name\": \"lusca\",\r\n                \"arguments\": [\r\n                    {\r\n                        \"xframe\": \"SAMEORIGIN\",\r\n                        \"p3p\": true,\r\n                        \"csp\": true\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    }\r\n```\r\n\r\nThis is my npm module versions\r\n\r\n```\r\n{\r\n    \"adaro\": \"^0.1.5\",\r\n    \"async\": \"^0.9.0\",\r\n    \"compression\": \"^1.2.2\",\r\n    \"cookie\": \"^0.1.2\",\r\n    \"cookie-parser\": \"^1.3.3\",\r\n    \"dustjs-helpers\": \"^1.2.0\",\r\n    \"dustjs-linkedin\": \"^2.3.6\",\r\n    \"engine-munger\": \"^0.2.0\",\r\n    \"express\": \"^4.3.0\",\r\n    \"express-session\": \"^1.9.3\",\r\n    \"kraken-devtools\": \"^1.0.0\",\r\n    \"kraken-js\": \"^1.0.1\",\r\n    \"less\": \"^1.6.1\",\r\n    \"localizr\": \"^0.1.0\",\r\n    \"moment\": \"^2.8.4\",\r\n    \"moment-range\": \"^1.0.5\",\r\n    \"morgan\": \"^1.5.0\",   \r\n    \"path-to-regexp\": \"^1.0.1\",\r\n    \"request\": \"^2.51.0\",\r\n    \"request-promise\": \"^0.3.2\",\r\n    \"simple-oauth2\": \"^0.2.1\",\r\n    \r\n  }\r\n```"},"comment":{"url":"https://api.github.com/repos/krakenjs/kraken-js/issues/comments/78507877","html_url":"https://github.com/krakenjs/kraken-js/issues/335#issuecomment-78507877","issue_url":"https://api.github.com/repos/krakenjs/kraken-js/issues/335","id":78507877,"user":{"login":"jasisk","id":62923,"avatar_url":"https://avatars.githubusercontent.com/u/62923?v=3","gravatar_id":"","url":"https://api.github.com/users/jasisk","html_url":"https://github.com/jasisk","followers_url":"https://api.github.com/users/jasisk/followers","following_url":"https://api.github.com/users/jasisk/following{/other_user}","gists_url":"https://api.github.com/users/jasisk/gists{/gist_id}","starred_url":"https://api.github.com/users/jasisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasisk/subscriptions","organizations_url":"https://api.github.com/users/jasisk/orgs","repos_url":"https://api.github.com/users/jasisk/repos","events_url":"https://api.github.com/users/jasisk/events{/privacy}","received_events_url":"https://api.github.com/users/jasisk/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T15:50:34Z","updated_at":"2015-03-12T15:50:34Z","body":"Closing since it's been a week. Happy to reopen if necessary."}}