Closed dm123455 closed 7 years ago
getting the same global is undefined.
var originalReplaceChild =
global.document.documentElement.replaceChild.bind(
global.document.documentElement);
Looks like getting this as well: Uncaught TypeError: HTMLtoJSX is not a constructor
var converter = new HTMLtoJSX({createClass: false});
Is there an extra dependency required to run this in a rails app?
I'm getting the same when evaluating if (global.Turbolinks === undefined) {
, - global itself isn't defined.
I see the latest release uses if (window.Turbolinks === undefined) {
, which is indeed defined on my setup too. @ssorallen can we expect a new release?
I just released the 'turbo_react-rails' gem with the version of the 'turbo-react' that fixes the global
error. v0.9.0 should fix the issue you're seeing. Try upgrading your gems, and let me know if you see other problems.
I am trying to use turbolinks in our rails application. The gems that I was initially using are jquery-turbolinks and turbolinks. But my react component does not show up after adding them into my application. So I went ahead and added turbo_react-rails into my app(in addition to jquery-turbolinks and turbolinks), but it throws 'global is not defined error'. What am I doing wrong?