Errors when running backbone.layoutmanager example in node.js #362

Closed
haohello opened this Issue Aug 2, 2013 · 3 comments

Comments

Projects
None yet
3 participants

haohello commented Aug 2, 2013

run the example of backbone.layoutmanager / example / 03.Using_in_Node /
and get the following error:

ubuntu@udev:~/workspace/backbone.layoutmanager-nodejs-example/node_modules/backbone.layoutmanager/example/03.Using_in_Node$ node index.js

/home/ubuntu/workspace/backbone.layoutmanager-nodejs-example/node_modules/backbone.layoutmanager/node_modules/underscore/underscore.js:1150
text.replace(matcher, function(match, escape, interpolate, evaluate, offse
^
TypeError: Cannot call method 'replace' of null
at Function._.template (/home/ubuntu/workspace/backbone.layoutmanager-nodejs-example/node_modules/backbone.layoutmanager/node_modules/underscore/underscore.js:1150:10)
at LayoutManager.options.fetchTemplate (/home/ubuntu/workspace/backbone.layoutmanager-nodejs-example/node_modules/backbone.layoutmanager/backbone.layoutmanager.js:896:14)
at Object.render (/home/ubuntu/workspace/backbone.layoutmanager-nodejs-example/node_modules/backbone.layoutmanager/backbone.layoutmanager.js:609:44)
at Object.manager.callback (/home/ubuntu/workspace/backbone.layoutmanager-nodejs-example/node_modules/backbone.layoutmanager/backbone.layoutmanager.js:62:29)
at Layout.Backbone.View.extend._render (/home/ubuntu/workspace/backbone.layoutmanager-nodejs-example/node_modules/backbone.layoutmanager/backbone.layoutmanager.js:74:15)
at actuallyRender (/home/ubuntu/workspace/backbone.layoutmanager-nodejs-example/node_modules/backbone.layoutmanager/backbone.layoutmanager.js:422:12)
at Layout.Backbone.View.extend.render (/home/ubuntu/workspace/backbone.layoutmanager-nodejs-example/node_modules/backbone.layoutmanager/backbone.layoutmanager.js:467:7)
at Object. (/home/ubuntu/workspace/backbone.layoutmanager-nodejs-example/node_modules/backbone.layoutmanager/example/03.Using_in_Node/index.js:25:8)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)

Collaborator

SBoudrias commented Aug 2, 2013

Seems to be a problem with the template. Something somewhere is passed as null.

Owner

tbranyen commented Aug 2, 2013

This is a regression that I've fixed and will soon be pushing a patch up along with a version bump.

@tbranyen tbranyen closed this in dc82c05 Aug 2, 2013

still not fixed for the node.js example? have you run it yourself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment