Skip to content

$RefreshSig$ is not defined error after using tutorial #1554

Closed Answered by Judahmeek
tonekk asked this question in Q&A
Discussion options

You must be logged in to vote

@tonekk I think this was user error... Kinda, anyway...

The $RefreshSig$ is not defined error you have is caused when the react-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 the react-refresh bab…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Judahmeek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants