compound icon indicating copy to clipboard operation
compound copied to clipboard

exists is not defined when using app.enable 'merge ...'

Open sagish opened this issue 13 years ago • 3 comments

Keeps happening when trying to merge assets of any kind

/atlas/node_modules/compound/lib/server/compound.js:215 exists(dir, function(exists) { ^ ReferenceError: exists is not defined at ensureDirClean (/atlas/node_modules/compound/lib/server/compound.js:215:5) at CompoundServer.init (/atlas/node_modules/compound/lib/server/compound.js:59:9) at /atlas/node_modules/compound/lib/compound.js:57:22 at process.startup.processNextTick.process._tickCallback (node.js:244:9)

sagish avatar Mar 07 '13 11:03 sagish

this is happening after compound update you've suggested

/atlas/config/environment.coffee:46 app.use(compound.assetsCompiler.init()); ^ TypeError: Cannot call method 'init' of undefined at Function.module.exports (/atlas/config/environment.coffee:46:39) at Function.app.configure (/atlas/node_modules/express/lib/application.js:396:61) at module.exports (/atlas/config/environment.coffee:45:16) at evalInContextOf (/atlas/node_modules/compound/lib/compound.js:178:9) at requireIfExists (/atlas/node_modules/compound/lib/compound.js:156:9) at configureApp (/atlas/node_modules/compound/lib/compound.js:139:5) at CompoundServer.initCompound (/atlas/node_modules/compound/lib/compound.js:91:9) at CompoundServer.init (/atlas/node_modules/compound/lib/server/compound.js:42:29) at /atlas/node_modules/compound/lib/compound.js:59:18 at process.startup.processNextTick.process._tickCallback (node.js:244:9)

heroku crashes

sagish avatar Mar 07 '13 11:03 sagish

remove "app.use(compound.assetsCompiler.init());" line from config/environment.coffee

On Thu, Mar 7, 2013 at 7:26 PM, sagish [email protected] wrote:

this is happening after compound update you've suggested

/atlas/config/environment.coffee:46 app.use(compound.assetsCompiler.init());

heroku crashes

— Reply to this email directly or view it on GitHubhttps://github.com/1602/compound/issues/445#issuecomment-14554833 .

anatoliychakkaev avatar Mar 07 '13 11:03 anatoliychakkaev

It was generated by prev. Version of compound, this middleware is no longer part of compound core.

1602 avatar Mar 07 '13 12:03 1602