-
Notifications
You must be signed in to change notification settings - Fork 11
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
'rake assets:precompile' not functioning properly #30
Comments
Does this fix it? |
I get the same error running precompiled assets in both production and development modes. I am attempting to deploy to Heroku. Running with browserify-rails in development, not recompiling assets, works well. I am using both NPM installed node_modules and writing many of my own components for use in a React UI. |
Hi. I'm having this very same issue on Rails 3.2.17. What I am observing is that the Rails engine is not being registered when I run It's also not clear from the Readme which versions of Rails are supported. I would guess at least 3.2 and up? |
It works fine when I run
-----> Using Node.js version: 0.10.21 |
I've got same error as michael-ns when pushing to heroku. If I include node-modules folder into the repo I get As a workaround you can disable asset compilation for production and sync manually with |
I'm having the same problem. Currently doing what @ikido suggested and it works but it's not the ideal. |
I had same issue as @michael-ns and found the solution. |
@chikathreesix thanks a lot for finding the solution to this.
I think the file has to be named .buildpacks instead of .buildpack (http://stackoverflow.com/a/14801582) |
@joaovpmamede thank you for pointing this out. |
Hello I have the same issue with this output and rails setup https://gist.github.com/kfamilonidis/e21e2b7e088732e684fb NODE_VERSION=v5.0.0 RAILS_ENV=production /usr/local/rvm/bin/rvm default do bundle exec rake assets:precompile === UPDATE solved - I replaced the double quotes with single ones on the browserify parameters and worked!
insead of
|
@kfamilonidis It's awesome that you found a fix for this issue, thanks! Active development for browserify-rails has actually moved to |
Steps to reproduce:
RESULT:
browserify does not compile into a single JS asset and individual JS files (such as React libraries) are loaded but throw errors
Please let me know if I am making some sort of mistake, but as of now I have to revert to manual compilation as recommended in issue #27
The text was updated successfully, but these errors were encountered: