allcount / allcountjs

Rapid application development framework for Node.js
http://allcountjs.com
MIT License
402 stars 83 forks source link

Can't use injection of modules from package.json if allcountjs-loopback is installed #76

Closed chikh closed 8 years ago

chikh commented 8 years ago

My startup js has following line:

injection.installModulesFromPackageJson("package.json");

And also I have following package.json part:

. . .
"dependencies": {
. . .
    "allcountjs-loopback": "^1.0.1",
. . .
}

I got following error while running:

./allcountjs/services/injection.js:45
        throw new Error('Cycle dependency detected: ' + cycleDependencyGuardStack.join(', ') + ', >>> ' + serviceName);
        ^

Error: Cycle dependency detected: allcountServerStartup, appService, compileServices, referentialIntegrity, entityReferencedService, crudService, securityService, oldSecurityService, >>> oldSecurityService