Skip to content

rails generate react:install not working with Webpacker #775

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

Closed
1 of 4 tasks
brentdodell opened this issue Aug 30, 2017 · 3 comments
Closed
1 of 4 tasks

rails generate react:install not working with Webpacker #775

brentdodell opened this issue Aug 30, 2017 · 3 comments

Comments

@brentdodell
Copy link

Help us help you! Please choose one:

  • My app crashes with react-rails, so I've included the stack trace and the exact steps which make it crash.
  • My app doesn't crash, but I'm getting unexpected behavior. So, I've described the unexpected behavior and suggested a new behavior.
  • I'm trying to use react-rails with another library, but I'm having trouble. I've described my JavaScript management setup (eg, Sprockets, Webpack...), how I'm trying to use this other library, and why it's not working.
  • I have another issue to discuss.

rails generate react:install is broken, I believe by this Webpacker change. Webpacker::Configuration should now be Webpacker.config. Due to this, following the documentation in the README no longer works.

This is while using Webpacker master (new version hasn't been released yet to include these changes), which is required to fix an issue with on-demand compiling in development.

@brentdodell
Copy link
Author

It looks like the generator isn't the only thing that was broken with this. Webpacker::Manifest is not Webpacker.manifest. It would be good to look through the Webpacker PR linked to above to figure out what all needs to be updated.

@anle1337
Copy link

rails g react:install is not working for me either

@ElishebaW
Copy link

ElishebaW commented Sep 16, 2017

Hey @Anle90, I had the same problem today. I followed the steps in #778 and it worked!!

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