-
Notifications
You must be signed in to change notification settings - Fork 754
Couldn't find file 'react' when precompiling assets #30
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
Comments
I'll look into it tomorrow, thanks for reporting. |
I tried to duplicate your stack as precisely as I could to no avail yet. |
Our team just upgraded to Rails 4 and this now works. I don’t have much time to dig into this right now unfortunately. It sounds like I’m the only person running into this, so you can just close this as a wontfix. Thanks for looking into this! |
Hi, we are supporting rails 3.2! Could you maybe post your |
Here's the |
I completely missed #23, but it looks likely to be the same issue and has a solution. |
I'm using ruby-2.1.1 with rails-3.2.17 and this script reproduces the problem for me:
adding
doesn't seem to make a difference |
@acrispino thanks for the report! It is just because you didn't set the variant, in I can't reproduce @steadicat's issue though. |
We'll reopen if someone runs into this in the future. |
@JakubMal, we are running in to the exact same issue that @steadicat reported. We are using Rails 3.2.13 and ruby 1.9.3p194.
|
@stockandawe are you sure you have |
@JakubMal, I have |
I have the exact same issue. I'm using 0.9 and I have specified variant in both development.rb and production.rb (https://gitorious.org/gitorious/mainline/source/596c64564bfb4cb13ab5cdfccd4c585e3de58732:config/environments/production.rb#L65). Rails 3.2.16. |
Hi, I'm having a similar with file I want to be precompiled. I put my button.js.jsx in assets/javascripts/components/common/button.js.jsx and in our bundle file I require it like that: In my development.rb I have: We are using Rails 4.2.5.2 and react-rails 1.6.2 with ruby 2.3.0p0 When I reload the page I got the following error: Any help is welcoming, actually we are processing the file with gulp and it will be a great improvement if we can use the assets pipelines for it. Thanks a lot for helping. |
I know this issue is closed but am having a similar issue as @Migoo |
In general, shouldn't you require without file extension? eg
Does that work any better? Or does it raise a different error? Also, could you report your sprockets version? It seems like we're still tracking down compatibility issues with Sprockets 3 |
If I add
//= require react
to any JS file, everything works fine until I runrake assets:precompile
, at which point I get acouldn't find file 'react'
error.I have this in my
production.rb
:And this in my
development.rb
:I'm running Rails 3.2.17 with Ruby 1.9.3p484.
Full output of the
rake assets:precompile
command:The text was updated successfully, but these errors were encountered: