react-rails
react-rails copied to clipboard
Using Asset Pipeline - ReactDOM is undefined.
In react_ujs.js
/***/ (function(module, exports, webpack_require) {
var React = webpack_require(3) var ReactDOM = webpack_require(4) var ReactDOMServer = webpack_require(5)
ReactDOM comes up undefined.
Searching the code for symbol WEBPACK_EXTERNAL_MODULE_4 shows it being used but I have no idea what is supposed to define it.
I don't understand webpack so I may be missing something fundamental.
This looks like a webpack issue. Could you try asking in Webpacker or on Stack Overflow? Both those locations are a bit better equipped to help. I'd need an example project in order to assist you.
I don't understand why webpack is involved at all when I'm using asset pipeline
Can you post a reproduction? Your initial message was not clear enough about what you are doing or what caused the above message. In Rails 6 Webpack is the default pipeline and your message said the word Webpack in it, making it a natural assumption for me.
Please post a reproduction.
@tblanchard Please share the reproduction steps and let us know in case of any concerns. Closing this issue for now.