{"action":"created","issue":{"url":"https://api.github.com/repos/afj176/generator-mongoose/issues/20","labels_url":"https://api.github.com/repos/afj176/generator-mongoose/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/afj176/generator-mongoose/issues/20/comments","events_url":"https://api.github.com/repos/afj176/generator-mongoose/issues/20/events","html_url":"https://github.com/afj176/generator-mongoose/issues/20","id":77421574,"number":20,"title":"Errors upon when generating","user":{"login":"mimiflynn","id":414934,"avatar_url":"https://avatars.githubusercontent.com/u/414934?v=3","gravatar_id":"","url":"https://api.github.com/users/mimiflynn","html_url":"https://github.com/mimiflynn","followers_url":"https://api.github.com/users/mimiflynn/followers","following_url":"https://api.github.com/users/mimiflynn/following{/other_user}","gists_url":"https://api.github.com/users/mimiflynn/gists{/gist_id}","starred_url":"https://api.github.com/users/mimiflynn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mimiflynn/subscriptions","organizations_url":"https://api.github.com/users/mimiflynn/orgs","repos_url":"https://api.github.com/users/mimiflynn/repos","events_url":"https://api.github.com/users/mimiflynn/events{/privacy}","received_events_url":"https://api.github.com/users/mimiflynn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"afj176","id":301960,"avatar_url":"https://avatars.githubusercontent.com/u/301960?v=3","gravatar_id":"","url":"https://api.github.com/users/afj176","html_url":"https://github.com/afj176","followers_url":"https://api.github.com/users/afj176/followers","following_url":"https://api.github.com/users/afj176/following{/other_user}","gists_url":"https://api.github.com/users/afj176/gists{/gist_id}","starred_url":"https://api.github.com/users/afj176/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afj176/subscriptions","organizations_url":"https://api.github.com/users/afj176/orgs","repos_url":"https://api.github.com/users/afj176/repos","events_url":"https://api.github.com/users/afj176/events{/privacy}","received_events_url":"https://api.github.com/users/afj176/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-05-17T23:02:56Z","updated_at":"2015-05-18T13:55:15Z","closed_at":null,"body":"I'm getting the following error before the questions right after running `yo mongoose`:\r\n\r\n```\r\n(!) this.readFileAsString() is deprecated. Use require(\"html-wiring\").readFileAsString() instead.\r\n```\r\n\r\nI'm also getting errors after answering the initialization questions:\r\n\r\n```\r\n(!) #mkdir() is deprecated. Use mkdirp module instead. https://www.npmjs.com/package/mkdirp\r\n(!) #mkdir() is deprecated. Use mkdirp module instead. https://www.npmjs.com/package/mkdirp\r\nevents.js:85\r\n      throw er; // Unhandled 'error' event\r\n            ^\r\nReferenceError: /usr/local/lib/node_modules/generator-mongoose/app/templates/Gruntfile.js:45\r\n    43|     open: {\r\n    44|       server: {\r\n >> 45|         url: 'http://localhost:<%= express.options.port %>'\r\n    46|       }\r\n    47|     }\r\n    48|   });\r\n\r\nexpress is not defined\r\n    at eval (eval at <anonymous> (/usr/local/lib/node_modules/generator-mongoose/node_modules/yeoman-generator/node_modules/mem-fs-editor/node_modules/ejs/lib/ejs.js:455:12), <anonymous>:11:28)\r\n    at /usr/local/lib/node_modules/generator-mongoose/node_modules/yeoman-generator/node_modules/mem-fs-editor/node_modules/ejs/lib/ejs.js:482:14\r\n    at Object.exports.render (/usr/local/lib/node_modules/generator-mongoose/node_modules/yeoman-generator/node_modules/mem-fs-editor/node_modules/ejs/lib/ejs.js:316:13)\r\n    at copy.process (/usr/local/lib/node_modules/generator-mongoose/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/copy-tpl.js:18:18)\r\n    at applyProcessingFunc (/usr/local/lib/node_modules/generator-mongoose/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/copy.js:12:16)\r\n    at EditionInterface.exports._copySingle (/usr/local/lib/node_modules/generator-mongoose/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/copy.js:55:24)\r\n    at EditionInterface.exports.copy (/usr/local/lib/node_modules/generator-mongoose/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/copy.js:22:17)\r\n    at EditionInterface.module.exports [as copyTpl] (/usr/local/lib/node_modules/generator-mongoose/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/copy-tpl.js:16:8)\r\n    at MongooseGenerator.template (/usr/local/lib/node_modules/generator-mongoose/node_modules/yeoman-generator/lib/actions/actions.js:134:11)\r\n    at MongooseGenerator.copy (/usr/local/lib/node_modules/generator-mongoose/node_modules/yeoman-generator/lib/actions/actions.js:43:10)\r\n```\r\n\r\nI answered the questions as follows:\r\n\r\n```\r\n? Database Name: contacts-react\r\n? Database Host: localhost\r\n? Database User:\r\n? Database Password:\r\n? Database Port: 27017\r\n? Will you be using heroku? No\r\n```"},"comment":{"url":"https://api.github.com/repos/afj176/generator-mongoose/issues/comments/103068147","html_url":"https://github.com/afj176/generator-mongoose/issues/20#issuecomment-103068147","issue_url":"https://api.github.com/repos/afj176/generator-mongoose/issues/20","id":103068147,"user":{"login":"mimiflynn","id":414934,"avatar_url":"https://avatars.githubusercontent.com/u/414934?v=3","gravatar_id":"","url":"https://api.github.com/users/mimiflynn","html_url":"https://github.com/mimiflynn","followers_url":"https://api.github.com/users/mimiflynn/followers","following_url":"https://api.github.com/users/mimiflynn/following{/other_user}","gists_url":"https://api.github.com/users/mimiflynn/gists{/gist_id}","starred_url":"https://api.github.com/users/mimiflynn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mimiflynn/subscriptions","organizations_url":"https://api.github.com/users/mimiflynn/orgs","repos_url":"https://api.github.com/users/mimiflynn/repos","events_url":"https://api.github.com/users/mimiflynn/events{/privacy}","received_events_url":"https://api.github.com/users/mimiflynn/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T13:55:15Z","updated_at":"2015-05-18T13:55:15Z","body":"Node is 0.12.2 and NPM is 2.7.5\r\n\r\nI fixed the `mkdir` and `readFileAsString` deprecation issues [here](https://github.com/mimiflynn/generator-mongoose/commit/d6fff47c1264e7d166854c7ebea8a3b7a348ad78) and am now getting errors with the `index.html`:\r\n\r\n```\r\nReferenceError: /Users/mimiflynn/Projects/generator-mongoose/app/templates/views/index.html:11\r\n    9|       <div class=\"container\">\r\n    10|         <div class=\"navbar-header\">\r\n >> 11|           <a class=\"navbar-brand\" href=\"javascript:\"><%= siteName %></a>\r\n    12|         </div>\r\n    13|       </div>\r\n    14|     </div>\r\n\r\nsiteName is not defined\r\n    at eval (eval at <anonymous> (/Users/mimiflynn/Projects/generator-mongoose/node_modules/yeoman-generator/node_modules/mem-fs-editor/node_modules/ejs/lib/ejs.js:455:12), <anonymous>:11:28)\r\n    at /Users/mimiflynn/Projects/generator-mongoose/node_modules/yeoman-generator/node_modules/mem-fs-editor/node_modules/ejs/lib/ejs.js:482:14\r\n    at Object.exports.render (/Users/mimiflynn/Projects/generator-mongoose/node_modules/yeoman-generator/node_modules/mem-fs-editor/node_modules/ejs/lib/ejs.js:316:13)\r\n    at copy.process (/Users/mimiflynn/Projects/generator-mongoose/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/copy-tpl.js:18:18)\r\n    at applyProcessingFunc (/Users/mimiflynn/Projects/generator-mongoose/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/copy.js:12:16)\r\n    at EditionInterface.exports._copySingle (/Users/mimiflynn/Projects/generator-mongoose/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/copy.js:55:24)\r\n    at EditionInterface.exports.copy (/Users/mimiflynn/Projects/generator-mongoose/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/copy.js:22:17)\r\n    at EditionInterface.module.exports [as copyTpl] (/Users/mimiflynn/Projects/generator-mongoose/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/copy-tpl.js:16:8)\r\n    at MongooseGenerator.template (/Users/mimiflynn/Projects/generator-mongoose/node_modules/yeoman-generator/lib/actions/actions.js:134:11)\r\n    at MongooseGenerator.copy (/Users/mimiflynn/Projects/generator-mongoose/node_modules/yeoman-generator/lib/actions/actions.js:43:10)\r\n```"}}