Skip to content
This repository

ReferenceError: window is not defined #495

Closed
travishaynes opened this Issue July 12, 2012 · 3 comments

3 participants

Travis Haynes Harry Brundage
Travis Haynes

Using a fresh installation of nodejs v0.8.2, I installed batman by running npm install -g batman, but when I run batman new app, I get this error:

/usr/lib/node_modules/batman/lib/dist/batman.node.js:2265
    querySelectorAll: window.jQuery != null ? function(node, selector) {
                      ^
ReferenceError: window is not defined
    at Object.<anonymous> (/usr/lib/node_modules/batman/lib/dist/batman.node.js:2265:23)
    at Object.<anonymous> (/usr/lib/node_modules/batman/lib/dist/batman.node.js:2624:4)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/usr/lib/node_modules/batman/tools/generator.js:16:12)
    at Object.<anonymous> (/usr/lib/node_modules/batman/tools/generator.js:150:4)

I also have this issue on nodejs 0.8.2. Downgrading node to 0.5 / 0.6 also does not resolve the issue but throws another error instead.

Harry Brundage airhorns closed this in f76e528 July 13, 2012
Harry Brundage
Collaborator

If you want to use batman now, you can clone, checkout master, and then run a npm link inside the directory to get the updated binary. :)

Thanks for the report gentlemen!

Thanks a lot for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.