theseus requires the /routes/index.js on express/kraken apps?

105 views
Skip to first unread message

Sam Beckwith III

unread,
Aug 21, 2014, 7:59:16 PM8/21/14
to theseus...@googlegroups.com
Howdy.

Theseus and node-theseus look to be wonderful projects, however I am unable to use it at this time on my project.

Why? We are using kraken-js version 1.0.1 & express version 4.4.3. Node-theseus tries to load /routes which will likely never exist in my project.

Exception:
[node-theseus] caught uncaught exception
Error: cannot find module 'P:\project\routes'
  at Function.Module._resolveFilename (module.js:338:15)
  at Function.Module._load (module.js:280:25)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at index (P:\project\node_modules\kraken-js\node_modules\express-enrouten\lib\index.js:15:14)
  at Function.onmount (P:\project\node_modules\kraken-js\node_modules\express-enrouten\index.js:51:13)
  at Function.g (events.js:180:16)
  at Function.emit (events.js:117:20)
  at Function.global.__tracer.EventEmitter.emit (eval at createTracer (C:\users\sam\appdata\roaming\npm\node_modules\node-theseus\node-theseus.js:170:14), <anonymous>:1151:20)
  at Function.app.use (P:\project\node_modules\express\lib\application.js:202:15)
  at register (P:\project\node_modules\kraken-js\node_modules\meddleware\index.js:219:24)

I am certain I am overlooking something that should be clear. Has anyone experienced this? What information do y'all need for further clarity?

-sam

Tom Lieber

unread,
Aug 21, 2014, 8:46:32 PM8/21/14
to Sam Beckwith III, theseus...@googlegroups.com
Hmm, I poked around the code in the stack trace, but I don’t think I have enough context to go on.

Is the problem that it’s looking in the wrong place for routes.js?
Is the problem that it’s looking for routes.js at all?

If you can provide the code for a project that exhibits the error too, that would be great!



--
You received this message because you are subscribed to the Google Groups "Theseus Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theseus-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Tom Lieber
http://AllTom.com/
http://infinite-sketchpad.com/

Sam Beckwith III

unread,
Aug 21, 2014, 11:54:51 PM8/21/14
to Tom Lieber, theseus...@googlegroups.com
Howdy,

Indeed the problem is it looking for the "routes" dir.


node-theseus is installed globally.

I run it via:
"%APPDATA%\npm\node-theseus.cmd" index.js

Works fine when run as node but not as node-theseus; gives the error of interest.

Please let me know how else I may assist.

-sam

Sam Beckwith III

unread,
Aug 22, 2014, 12:19:48 PM8/22/14
to Tom Lieber, theseus...@googlegroups.com
fyi: kraken basically "moves" the routes dir to controllers dir.
Reply all
Reply to author
Forward
0 new messages