Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

express.compiler undefined #4

Open
ktiedt opened this issue Jul 16, 2012 · 8 comments
Open

express.compiler undefined #4

ktiedt opened this issue Jul 16, 2012 · 8 comments

Comments

@ktiedt
Copy link

ktiedt commented Jul 16, 2012

When trying to run srv.web.js from your tutorial I get this error: (Note: I got to this error AFTER I installed express explcitly, since it wasnt listed as a requirement in sub modules or otherwise -- the error stems from line 8 of kickstart -- and I have been unable to find any solutions to this on the web.

express.compiler.compilers.less.compile = function (str, fn) {

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Calling node's require("kickstart") failed with error: TypeError: Cannot read property 'compilers' of undefined
at /Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:2255:27
at Object.execCb (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1766:33)
at Object.check (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1075:51)
at Object.enable (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1316:22)
at Object.init (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:974:26)
at callGetModule (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1341:59)
at Object.completeLoad (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1641:21)
at Function.load (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:2265:17)
at Object.load (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1755:21)
at Object.load (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1032:29)

@sbstjn
Copy link
Owner

sbstjn commented Jul 16, 2012

I just had the same error in some other project. Seems to happen when using express version 3.0.0 beta (latest pointer in npm is on beta). I'll update the package.json file to use express 2.5.x…

Maybe a npm install express@2.5.11 will fix your problem?

@ktiedt
Copy link
Author

ktiedt commented Jul 16, 2012

This got farther..

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Calling node's require("socket.io") failed with error: Error: Cannot find module 'uglify-js'
at /Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:2255:27
at Object.execCb (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1766:33)
at Object.check (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1075:51)
at Object.enable (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1316:22)
at Object.init (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:974:26)
at callGetModule (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1341:59)
at Object.completeLoad (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1641:21)
at Function.load (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:2265:17)
at Object.load (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1755:21)
at Object.load (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1032:29)

@sbstjn
Copy link
Owner

sbstjn commented Jul 16, 2012

which node version do you use?

@ktiedt
Copy link
Author

ktiedt commented Jul 16, 2012

currently on 0.6.14

@sbstjn
Copy link
Owner

sbstjn commented Jul 16, 2012

I'm using v0.6.19 and the following package versions:

npm install colors@0.6.0-1 serialport@1.0.0 kickstart@0.0.6 requirejs@2.0.4 socket.io@0.9.6

@ktiedt
Copy link
Author

ktiedt commented Jul 16, 2012

Just checked, those are the same versions installed, it appears a submodule has a bad dependency list... I updated node... to eliminate that potential problem then ended up having to run:
npm install uglify-js
this resolved the above error... then
npm install active-x-obfuscator
to resolve:
/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1902
throw err;
^
Error: Calling node's require("socket.io") failed with error: Error: Cannot find module 'active-x-obfuscator'
at req.load (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:2255:27)
at Object.context.execCb (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1766:33)
at Object.Module.check (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1075:51)
at Object.Module.enable (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1316:22)
at Object.Module.init (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:974:26)
at callGetModule (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1341:59)
at Object.context.completeLoad (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1641:21)
at Function.req.load (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:2265:17)
at Object.context.load (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1755:21)
at Object.Module.load (/Users/ktiedt/repos-git/noduino/node_modules/requirejs/bin/r.js:1032:29)

So likely not a problem with noduino other than it depends on a project with bad dependencies?

@sbstjn
Copy link
Owner

sbstjn commented Jul 16, 2012

Try downgrading to a lower version of uglify-js or active-x-obfuscator, see npm info uglify-js for a version history…

@ktiedt
Copy link
Author

ktiedt commented Jul 16, 2012

Once I install those (no version specifics) -- srv.web.js starts, just the demo pages "Connect to" all cause a segfault (I dont have the board setup with ledWalker yet -- since I couldnt even get the code to run -- setting up a board now to test)

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

No branches or pull requests

2 participants