You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to modify `app/javascript/packs/application.js` to get this to work for me. I'm not sure if this was a recent update to the structure of shakapacker. I thought the documentation should be updated to help future readers.
4. Edit `app/javascript/packs/application.js` like so:
156
156
```jsx
157
157
importReactfrom'react';
158
158
import { createRoot } from'react-dom/client';
@@ -267,4 +267,4 @@ rails s
267
267
268
268
11. Edit either the React component at `app/javascript/App.js` or the CSS file at `app/javascript/App.css` and observe the HMR goodness.
269
269
270
-
Note that HMR will not work if you edit `app/javascript/application.js` and experience a full refresh with a warning in the console. For more info on this, see here: https://github.com/pmmmwh/react-refresh-webpack-plugin/issues/177
270
+
Note that HMR will not work if you edit `app/javascript/packs/application.js` and experience a full refresh with a warning in the console. For more info on this, see here: https://github.com/pmmmwh/react-refresh-webpack-plugin/issues/177
0 commit comments