-
Notifications
You must be signed in to change notification settings - Fork 5
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
is support for gatsby possible? #36
Comments
#7 is sort of related. It looks like you're doing a |
Yeah, it's got me stumped because I'm definitely not doing that. And it only happens when I do a |
So I'm trying to work around needing bundle exec. I've read https://github.com/cj/opal-webpack/tree/master/examples/complex and it looks like the following is theoretically what I need to do, right?
I'm getting this though:
|
The examples are really out of date and this has almost been rewritten since then. |
Are you using react-rails ? |
No to react-rails. If it helps, opal files themselves seem to compile just fine. It seems to basically be a problem of using I got things sort of working by calling reactrb-express (see https://github.com/hayley/hayley.io/blob/master/html.js), which bundles the following into one .js file:
However, I'm assuming that in order to actually take advantage of gatsby being able to use rb files directly, I'm going to have to figure out how to get everything working through webpack. Oh, not sure if related, but I also tried doing a |
@hayley - Sorry. I've been slammed with other things and just haven't been able to spend time on this project lately. |
Hey, no worries. FYI, since @catmando mentioned opening stackoverflow questions for anything reactrb related, I opened http://stackoverflow.com/questions/38549955/is-it-possible-to-use-the-gatsby-static-site-generator-with-reactrb I wish I knew more about webpack and such so I could directly help, but let me know if there's any info/help I can provide. |
So I'll preface all of this with the fact that I'm basically completely new to webpack and js toolsets (my background is middleman/sprockets), but I'm wondering if it would be possible for opal-webpack to work with:
https://github.com/gatsbyjs/gatsby
I've got the repository with the non-working code here:
https://github.com/hayley/hayley.io
If I run just
gatsby develop
, mysteriously, Opal itself will load properly but I can't call 'reactrb'. If I dobundle exec gatsby develop
, then I get the following error:Is issue #7 related?
Oh and gatsby apparently handles webpack modifications through webpack configurator, in a file called
gatsby-node.js/coffee
.Quick link to mine: https://github.com/hayley/hayley.io/blob/master/gatsby-node.coffee
The text was updated successfully, but these errors were encountered: