express-angular icon indicating copy to clipboard operation
express-angular copied to clipboard

has no method 'register' error

Open jkicha opened this issue 14 years ago • 4 comments

I am getting the following error on running node app.js

H:\nodeproj\express-angular\app.js:94 app.register('.html', require('ejs')); ^ TypeError: Object function app(req, res){ app.handle(req, res); } has no method 'register'

please help me to get it running? I am new to node.js and angular. I have completed angular tutorial which is running fine.

thanks, Krishna

jkicha avatar Aug 05 '12 16:08 jkicha

What version of node and express are you using along with it?

ganarajpr avatar Aug 06 '12 10:08 ganarajpr

Node version is 0.8.4 Express 3.0.0rc1

thanks, Krishna

On Mon, Aug 6, 2012 at 3:35 PM, ganarajpr < [email protected]

wrote:

What version of node and express are you using along with it?


Reply to this email directly or view it on GitHub: https://github.com/ganarajpr/express-angular/issues/1#issuecomment-7520625

jkicha avatar Aug 06 '12 16:08 jkicha

replace with app.engine('html', require('ejs').renderFile); will fix this.

mgcrea avatar Oct 16 '12 15:10 mgcrea

Project updated with latest node and express.

ganarajpr avatar Dec 29 '12 19:12 ganarajpr