1602 / compound

MVC framework. Built on Node.JS. Works on server and browser.
http://compoundjs.com
1.6k stars 183 forks source link

TypeError: Cannot read property 'enabled' of undefined while creating app #652

Closed maqboolkhan closed 7 years ago

maqboolkhan commented 8 years ago

i just installed compoundjs on Windows 10 and now when i am creating app using

compound init myapp

it throwing

(node) sys is deprecated. Use util instead.
C:\Users\maqi\AppData\Roaming\npm\node_modules\compound\lib\server\structure.js:30
        if (compound.app.enabled('watch') && key !== 'views') {
                        ^

TypeError: Cannot read property 'enabled' of undefined
  at Object.compound.structure.register (C:\Users\maqi\AppData\Roaming\npm\node_modules\compound\lib\server\structure.js:30:25)
  at readNode (C:\Users\maqi\AppData\Roaming\npm\node_modules\compound\lib\server\structure.js:125:40)
  at Array.forEach (native)
  at read (C:\Users\maqi\AppData\Roaming\npm\node_modules\compound\lib\server\structure.js:92:33)
  at C:\Users\maqi\AppData\Roaming\npm\node_modules\compound\lib\server\structure.js:73:21
  at Array.forEach (native)
  at CompoundServer.loadStructure (C:\Users\maqi\AppData\Roaming\npm\node_modules\compound\lib\server\structure.js:71:36)
  at CompoundServer.initCompound [as init] (C:\Users\maqi\AppData\Roaming\npm\node_modules\compound\lib\compound.js:147:18)
  at CompoundServer.initCompoundServer [as init] (C:\Users\maqi\AppData\Roaming\npm\node_modules\compound\lib\server\compound.js:54:29)
  at Object.<anonymous> (C:\Users\maqi\AppData\Roaming\npm\node_modules\compound\bin\compound.js:30:10)
  at Module._compile (module.js:435:26)
  at Object.Module._extensions..js (module.js:442:10)
  at Module.load (module.js:356:32)
  at Function.Module._load (module.js:311:12)
  at Function.Module.runMain (module.js:467:10)
  at startup (node.js:134:18)
  at node.js:961:3

how to fix it and why its happening??

one more thing i even cant use just compound command same error happening!

Please help thanks