forked from zetachang/opalrb-loader
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
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 do bundle exec gatsby develop, then I get the following error:
ERROR in ./~/opal-webpack?file=opal%2Fbase&cacheIdentifier=%7B%22opal-loader%22%3A%221.0.9%22%2C%22opal-compiler%22%3A%220.9.4%22%7D&requirable=true!/Users/hayley/.gem/ruby/2.3.1/gems/opal-0.9.4/opal/opal/base.rb
Module not found: Error: Cannot resolve module 'babel' in /Users/hayley/.gem/ruby/2.3.1/gems/opal-0.9.4/opal/opal
@ ./~/opal-webpack?file=opal%2Fbase&cacheIdentifier=%7B%22opal-loader%22%3A%221.0.9%22%2C%22opal-compiler%22%3A%220.9.4%22%7D&requirable=true!/Users/hayley/.gem/ruby/2.3.1/gems/opal-0.9.4/opal/opal/base.rb 1:21-101
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
Metadata
Metadata
Assignees
Labels
No labels