Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Cannot read property 'push' of undefined #7

Open
aladdin-add opened this issue Aug 4, 2020 · 5 comments
Open

Cannot read property 'push' of undefined #7

aladdin-add opened this issue Aug 4, 2020 · 5 comments

Comments

@aladdin-add
Copy link

aladdin-add commented Aug 4, 2020

it was working in [email protected], but seems not working with the latest webpack and the plugin:

image

webpack: 5.0.0.beta.23
node.js: v14.5.0
webpack-fast-refresh: 5.0.4
react-refresh: 0.8.3

@aladdin-add
Copy link
Author

I've created a simple repro: https://github.com/aladdin-add/issue7
(it was simplified from a private repo)

thanks in advance!

@Agamennon
Copy link

Agamennon commented Aug 4, 2020

having the same issue, as soon as you place ReactRefreshPlugin(), on plugins you get that error, last known setup is with webpack 5.0.0-beta.22 + webpack-fast-refresh 5.0.1

@apostolos
Copy link
Member

Something's going on with html-webpack-plugin. I've never used it before but looking into it.

@apostolos
Copy link
Member

In the meantime, I strongly suggest switching to https://github.com/pmmmwh/react-refresh-webpack-plugin

It is the "official" react refresh plugin and it looks to be working with html-webpack-plugin without issues. It also now has full support for webpack v5.

@AlonMiz
Copy link

AlonMiz commented Sep 13, 2020

The same for me after I've upgraded to webpack 5.0.0-beta.29

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants