reactjs/react-rails

Component doesn't render on jsbundling-rails webpacker

RailsCod3rFuture opened this issue · 5 comments

Help us help you! Have you looked for similar issues? Do you have reproduction steps? Contributing Guide

Steps to reproduce

  1. install both react-rails/jsbundling-rails gem
  2. setup jsbundling-rails to use webpacker
  3. create a component and attempt to render it with a targeted id after running yarn build

(Guidelines for creating a bug report are available
here
)

Expected behavior

Tell us what should happen

The component should render with webpack/webpack-cli

Actual behavior

Tell us what happens instead
the page is entirely blank

System configuration

  • Shakapacker or Sprockets version:

jsbundling-rails 1.1.2

  • React-Rails version:

react-rails 2.6.1

  • Rect_UJS version:
    whichever comes with the gem
  • Rails version:

rails 6.0.3

  • Ruby version:

ruby 2.7.7


(Describe your issue here)

Please check your terminal and see if you get any specific errors.

I sincerely believe its the result of bumping our spec up to react 18. We have to keep our system modern for security reasons. I opted to do it natively.

Shakapacker shouldn't have any impact on the version of React being used.

If you can share a public repo to reproduce the issue, we might be able to check if there is anything we can do From Shakapacker side.

setup jsbundling-rails to use webpacker

We don't support jsbundling-rails.

We only support Shakapacker and sprockets.

If you want to submit a PR to support this, we could consider it.

Or could you try with Shakapacker?

Chose Shakapacker