-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@ahangarha is working on updates. |
Beta Was this translation helpful? Give feedback.
-
@tonekk I think this was user error... Kinda, anyway... The The logic the ReactOnRails installation generator adds is that the react-refresh babel plugin is used if the WEBPACK_SERVE environment variable is defined, which is usually only if webpack-dev-server is running. The Webpack plugin, however, is only added if Shakapacker determines that the dev_server is running (which it checks by websocket) & that you've configured CSS to be inlined.. Since you're trying to use Since it apparently was, my guess is that you have You can check for this by adding something like:
to your |
Beta Was this translation helpful? Give feedback.
@tonekk I think this was user error... Kinda, anyway...
The
$RefreshSig$ is not defined
error you have is caused when thereact-refresh
babel plugin is used, but a corresponding Webpack plugin is not.The logic the ReactOnRails installation generator adds is that the react-refresh babel plugin is used if the WEBPACK_SERVE environment variable is defined, which is usually only if webpack-dev-server is running.
The Webpack plugin, however, is only added if Shakapacker determines that the dev_server is running (which it checks by websocket) & that you've configured CSS to be inlined..
Since you're trying to use
Procfile.dev-static
, that's not happening, which means that thereact-refresh
bab…