You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The summary of that tutorial is that he shows how to setup the react-rails gem and add browserify so that you can manage your dependencies using npm and load them with commonJS.
But, reading from the issues, it looks like commonjs and broweserify is not supported with this gem, (unless you use a workaround like #120 )
So my question is, what is the preferred or "first-class" way of handling dependencies ?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
This gem works great if you do your dependencies Sprockets-style (eg, installing gems like underscore-rails or copy-pasting dependencies into app/assets/javascripts/vendor, then requiring them with //= require ....)
This gem doesn't have any trappings to support commonjs requires, and that's a known bummer. No PRs to fix it at the moment, just some suggested workarounds :)
Hello everyone,
I wanted to create a Rails app with React, following this tutorial:
https://medium.com/@olance/rails-react-browserify-e315001d5974
The summary of that tutorial is that he shows how to setup the react-rails gem and add browserify so that you can manage your dependencies using npm and load them with commonJS.
But, reading from the issues, it looks like commonjs and broweserify is not supported with this gem, (unless you use a workaround like #120 )
So my question is, what is the preferred or "first-class" way of handling dependencies ?
Thanks in advance!
The text was updated successfully, but these errors were encountered: