{"action":"created","issue":{"url":"https://api.github.com/repos/linnovate/mean/issues/1065","labels_url":"https://api.github.com/repos/linnovate/mean/issues/1065/labels{/name}","comments_url":"https://api.github.com/repos/linnovate/mean/issues/1065/comments","events_url":"https://api.github.com/repos/linnovate/mean/issues/1065/events","html_url":"https://github.com/linnovate/mean/issues/1065","id":58281040,"number":1065,"title":"modulePath not defined","user":{"login":"danielskapunk","id":289055,"avatar_url":"https://avatars.githubusercontent.com/u/289055?v=3","gravatar_id":"","url":"https://api.github.com/users/danielskapunk","html_url":"https://github.com/danielskapunk","followers_url":"https://api.github.com/users/danielskapunk/followers","following_url":"https://api.github.com/users/danielskapunk/following{/other_user}","gists_url":"https://api.github.com/users/danielskapunk/gists{/gist_id}","starred_url":"https://api.github.com/users/danielskapunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielskapunk/subscriptions","organizations_url":"https://api.github.com/users/danielskapunk/orgs","repos_url":"https://api.github.com/users/danielskapunk/repos","events_url":"https://api.github.com/users/danielskapunk/events{/privacy}","received_events_url":"https://api.github.com/users/danielskapunk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-19T22:32:10Z","updated_at":"2015-02-19T22:35:15Z","closed_at":null,"body":"Hi, I'm getting modulePath is not defined when trying to render a view like this:\r\ncustom/ccwstheme/server/routes/ccwstheme.js\r\n```\r\nCcwstheme.render('test', {\r\n      package: 'ccwstheme'\r\n    }, function(err, html) {\r\n      //Rendering a view from the Package server/views\r\n      res.send(html);\r\n });\r\n```\r\n\r\nHere is the error:\r\n```\r\nReferenceError: modulePath is not defined\r\n    at Module.render (C:\\dev\\CuriosoWS\\meanapp\\node_modules\\meanio\\lib\\core_modules\\module\\index.js:162:21)\r\n    at C:\\dev\\CuriosoWS\\meanapp\\packages\\custom\\ccwstheme\\server\\routes\\ccwstheme.js:18:15\r\n    at Layer.handle [as handle_request] (C:\\dev\\CuriosoWS\\meanapp\\node_modules\\meanio\\lib\\core_modules\\server\\node_modules\\express\\lib\\router\\layer.js\r\n:82:5)\r\n    at next (C:\\dev\\CuriosoWS\\meanapp\\node_modules\\meanio\\lib\\core_modules\\server\\node_modules\\express\\lib\\router\\route.js:110:13)\r\n    at Route.dispatch (C:\\dev\\CuriosoWS\\meanapp\\node_modules\\meanio\\lib\\core_modules\\server\\node_modules\\express\\lib\\router\\route.js:91:3)\r\n    at Layer.handle [as handle_request] (C:\\dev\\CuriosoWS\\meanapp\\node_modules\\meanio\\lib\\core_modules\\server\\node_modules\\express\\lib\\router\\layer.js\r\n:82:5)\r\n    at C:\\dev\\CuriosoWS\\meanapp\\node_modules\\meanio\\lib\\core_modules\\server\\node_modules\\express\\lib\\router\\index.js:267:22\r\n    at Function.proto.process_params (C:\\dev\\CuriosoWS\\meanapp\\node_modules\\meanio\\lib\\core_modules\\server\\node_modules\\express\\lib\\router\\index.js:32\r\n1:12)\r\n    at next (C:\\dev\\CuriosoWS\\meanapp\\node_modules\\meanio\\lib\\core_modules\\server\\node_modules\\express\\lib\\router\\index.js:261:10)\r\n    at SendStream.error (C:\\dev\\CuriosoWS\\meanapp\\node_modules\\meanio\\lib\\core_modules\\server\\node_modules\\express\\node_modules\\serve-static\\index.js:\r\n107:7)\r\n```"},"comment":{"url":"https://api.github.com/repos/linnovate/mean/issues/comments/75153409","html_url":"https://github.com/linnovate/mean/issues/1065#issuecomment-75153409","issue_url":"https://api.github.com/repos/linnovate/mean/issues/1065","id":75153409,"user":{"login":"danielskapunk","id":289055,"avatar_url":"https://avatars.githubusercontent.com/u/289055?v=3","gravatar_id":"","url":"https://api.github.com/users/danielskapunk","html_url":"https://github.com/danielskapunk","followers_url":"https://api.github.com/users/danielskapunk/followers","following_url":"https://api.github.com/users/danielskapunk/following{/other_user}","gists_url":"https://api.github.com/users/danielskapunk/gists{/gist_id}","starred_url":"https://api.github.com/users/danielskapunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielskapunk/subscriptions","organizations_url":"https://api.github.com/users/danielskapunk/orgs","repos_url":"https://api.github.com/users/danielskapunk/repos","events_url":"https://api.github.com/users/danielskapunk/events{/privacy}","received_events_url":"https://api.github.com/users/danielskapunk/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T22:35:15Z","updated_at":"2015-02-19T22:35:15Z","body":"I found there is an open issue in meanio:\r\nhttps://github.com/linnovate/meanio/issues/42\r\n\r\nIs there any workarround?\r\n\r\nI'm trying to render with express res.render method instead, any ideas?"}}