I have an error that I don’t understand in the console. what can it mean?
There are no outdated packages.
Uncaught TypeError: Cannot read properties of undefined (reading 'push')
at self.webpackHotUpdate_roots_bud_sage_sage ((index):1688:46)
at runtime.504855542ddf15e6.hot-update.js:2:45
I really don’t know, sorry It is true that I have tried to implement react in production (unsuccessfully) as suggested by filipac, but now I have completely removed it and the error persists. I also don’t know when it started to appear.
For me, I do not have this error while on version 6.13.1, as soon as I update to 6.14.3, I get the error again BUT after I make a first change in React scripts/app. I see the hot reload (changes appear on website), but then if I refresh, I get the reading push error.
From what I see different between versions, from 6.14 onwards I get in entrypoints.json the “hot-update” version of the script. On 16.13.1, no matter how many changes I make, I do not get any “hot-update” versions in the entrypoints.json file.
To prevent all of the back-and-forth and to speed up getting a proper bug issue created, could you please provide all of the configs and code necessary to reproduce this? These would be helpful:
Your Bud config showing both the vanilla JS and React entrypoints
package.json modifications, including showing how you’ve brought in React
The code responsible for including including the entrypoints on a page
The contents of the file from your new JS file
Feel free to drop a repo or code sandbox link if you’d like. The more complete the information, the quicker we can diagnose and fix the issue.
We can attempt to figure this out on our own, but it’d be super helpful if this information could be provided off the bat.
FWIW, it is strongly advised to not enqueue multiple entrypoints per page.