Uh oh!
There was an error while loading. Please reload this page.
fix: add react-refresh as a dependency for templates - #9671
Conversation
mrmckeb
commented
Sep 22, 2020
Thanks for this @pmmmwh! We also have community templates, it might be better to add it here? Maybe @iansu and/or @ianschmitz have some thoughts too. |
pmmmwh
commented
Oct 18, 2020
I've update the PR to install |
merceyz
commented
Oct 24, 2020
This should be fixed in the plugin instead by having it resolve it before injecting the import - pmmmwh/react-refresh-webpack-plugin#230 |
pmmmwh
commented
Nov 7, 2020
Do you think that this is still needed after the fix in the plugin? |
Nope, it's not needed anymore. The plugin is updated in #9872 together with other dependency fixes |
pmmmwh
commented
Nov 11, 2020
Superseded by #9872 |
This fixes#9446 - basically I've added
react-refreshto the starting templates so that thepeerDependencyfromreact-refresh-webpack-pluginwould properly resolve in stricter module systems (e.g. Yarn 2 and PnP). It is already a dependency ofreact-scriptsbut that does not suffice because imports toreact-refresh/runtimewill be injected to the users' bundle.