-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Description
Thank you for putting together this gem, it made moving from react-rails
to using webpacker
a lot less painful.
At this point everything seems to be working but I do notice this error being thrown in the console by the initialize
call:
Uncaught TypeError: _webpackerReact2.default.initialize is not a function
at Object.<anonymous> (test.js:7)
at __webpack_require__ (bootstrap b4a3b0c…:19)
at validateFormat (bootstrap b4a3b0c…:65)
at bootstrap b4a3b0c…:65
Here's my pack file:
import React from 'react';
import ReactDOM from 'react-dom';
import Test from 'components/test';
import WebpackerReact from 'webpacker-react';
WebpackerReact.register(Test);
WebpackerReact.initialize();
console.info('media planner loaded');
I'm using the latest version of Webpacker (revision a85a3ab0eac6626af9da0efbda9320404114d675
). Any idea what may be causing this?
Metadata
Metadata
Assignees
Labels
No labels