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

Asset compiler doesn't work #483

Closed
thyms opened this issue Mar 23, 2013 · 4 comments
Closed

Asset compiler doesn't work #483

thyms opened this issue Mar 23, 2013 · 4 comments

Comments

@thyms
Copy link

thyms commented Mar 23, 2013

Asset compiler doesn't compile .coffe and .styl files when added "app.use(compound.assetsCompiler.init());" to environment.js as per documentation. It is throwing an exception as following:

    app.use(compound.assetsCompiler.init());
                                    ^

TypeError: Cannot call method 'init' of undefined
at Function. (/home/vagrant/tmp/my-compound-01/config/environment.js:7:41)
at Function.app.configure (/home/vagrant/tmp/my-compound-01/node_modules/express/lib/application.js:396:61)
at module.exports (/home/vagrant/tmp/my-compound-01/config/environment.js:6:9)
at evalInContextOf (/home/vagrant/tmp/my-compound-01/node_modules/compound/lib/compound.js:187:9)
at requireIfExists (/home/vagrant/tmp/my-compound-01/node_modules/compound/lib/compound.js:165:9)
at configureApp (/home/vagrant/tmp/my-compound-01/node_modules/compound/lib/compound.js:147:5)
at CompoundServer.initCompound (/home/vagrant/tmp/my-compound-01/node_modules/compound/lib/compound.js:91:9)
at CompoundServer.initCompoundServer as init
at /home/vagrant/tmp/my-compound-01/node_modules/compound/lib/compound.js:61:18
at process._tickCallback (node.js:415:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:901:3

@anatoliychakkaev
Copy link
Collaborator

What documentation?

On Saturday, March 23, 2013, Deniz KALFA wrote:

Asset compiler doesn't compile .coffe and .styl files when added
"app.use(compound.assetsCompiler.init());" to environment.js as per
documentation. It is throwing an exception as following:

app.use(compound.assetsCompiler.init());
                                ^

TypeError: Cannot call method 'init' of undefined
at Function. (/home/vagrant/tmp/my-compound-01/config/environment.js:7:41)
at Function.app.configure
(/home/vagrant/tmp/my-compound-01/node_modules/express/lib/application.js:396:61)
at module.exports
(/home/vagrant/tmp/my-compound-01/config/environment.js:6:9)
at evalInContextOf
(/home/vagrant/tmp/my-compound-01/node_modules/compound/lib/compound.js:187:9)
at requireIfExists
(/home/vagrant/tmp/my-compound-01/node_modules/compound/lib/compound.js:165:9)
at configureApp
(/home/vagrant/tmp/my-compound-01/node_modules/compound/lib/compound.js:147:5)
at CompoundServer.initCompound
(/home/vagrant/tmp/my-compound-01/node_modules/compound/lib/compound.js:91:9)
at CompoundServer.initCompoundServer as inithttp://home/vagrant/tmp/my-compound-01/node_modules/compound/lib/server/compound.js:43:29
at
/home/vagrant/tmp/my-compound-01/node_modules/compound/lib/compound.js:61:18
at process._tickCallback (node.js:415:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:901:3


Reply to this email directly or view it on GitHubhttps://github.com//issues/483
.

@thyms
Copy link
Author

thyms commented Mar 23, 2013

This documentation: http://compoundjs.com/docs/#asset-compiler-basic-usage

@1602
Copy link
Owner

1602 commented Mar 23, 2013

Thanks for spotting. This doc outdated. I've created issue this issue in asset-compiler module: compoundjs/assets-compiler#6

@1602 1602 closed this as completed Mar 23, 2013
@thyms
Copy link
Author

thyms commented Mar 23, 2013

Thanks for the quick response.

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

3 participants