Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cannot call method 'set' of null #3

Open
chicagoworks opened this issue Dec 6, 2010 · 1 comment
Open

Cannot call method 'set' of null #3

chicagoworks opened this issue Dec 6, 2010 · 1 comment

Comments

@chicagoworks
Copy link

I've followed the install and setup instructions but get the following error:

TypeError: Cannot call method 'set' of null
at Object.after (/Users/admin/Sites/yui-express/server.js:172:36)

172: Y.one('title').set('innerHTML', TITLE);

I've worked around it by adding a <title> tag to the layout_head. Do you have an uncommitted change to the layout_head file or is there something else that I'm missing? Thought or suggestions?

@rojkov
Copy link

rojkov commented Feb 17, 2012

I'm getting a similar error

TypeError: Cannot call method 'set' of null
at [object Function].render (/home/rozhkov/src/yui-express/node_modules/yui3/lib/yui3-express.js:301:28)
at Object. (/home/rozhkov/src/yui-express/node_modules/yui3/lib/yui3-express.js:265:24)
at ServerResponse._render (/home/rozhkov/src/yui-express/node_modules/express/lib/view.js:425:21)
at ServerResponse.render (/home/rozhkov/src/yui-express/node_modules/express/lib/view.js:318:17)
at /home/rozhkov/src/yui-express/server.js:161:13
...

In my case the failing statement is
eY.one('body').set('innerHTML', content);
and there is no 'body' tag in html templates

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant