Description
Description
We upgraded react-hot-loader from 4.12.12 to 4.12.15. Running into the above error with the new version.
Source line points to a recent commit in the code: 62bc67e
React Hot Loader version: 4.12.15
Run these commands in the project folder and fill in their results:
node -v
: 8.11.1npm -v
: 6.8.0
Then, specify:
- Operating system: Mac OSX 10.13.6
- Browser and version: Chrome 79
Stack:
react-hot-loader.development.js:1821 Uncaught TypeError: Cannot add property elementType, object is not extensible
at markUpdate (react-hot-loader.development.js:1821)
at deepMarkUpdate (react-hot-loader.development.js:1840)
at reconcileHotReplacement (react-hot-loader.development.js:2192)
at renderReconciler (react-hot-loader.development.js:2205)
at Object.asyncReconciledRender [as componentWillRender] (react-hot-loader.development.js:2213)
at Component.proxiedRender (react-hot-loader.development.js:770)
at finishClassComponent (react-dom.development.js:8389)
at updateClassComponent (react-dom.development.js:8357)
at beginWork (react-dom.development.js:8982)
at performUnitOfWork (react-dom.development.js:11814)
at workLoop (react-dom.development.js:11843)
at renderRoot (react-dom.development.js:11874)
at performWorkOnRoot (react-dom.development.js:12449)
at performWork (react-dom.development.js:12370)
at performSyncWork (react-dom.development.js:12347)
at requestWork (react-dom.development.js:12247)
Metadata
Metadata
Assignees
Labels
Projects
Milestone
Relationships
Development
- 4.12.15gaearon/react-hot-loader
- [Snyk] Upgrade react-hot-loader from 4.6.0 to 4.12.18preset-io/superset
- [Snyk] Upgrade react-hot-loader from 4.3.12 to 4.12.20novalina26/anchor
- [Snyk] Upgrade react-hot-loader from 4.12.12 to 4.13.1TheJ-Erk400/devaccownt
- [Snyk] Upgrade react-hot-loader from 4.12.12 to 4.13.1TheJ-Erk400/devaccownt
- [Snyk] Upgrade: react, react-dom, asn1-ber, electron-debug, history, react-animated-css, react-copy-to-clipboard, react-hot-loader, react-json-view, react-motion-loop, react-redux, redux, redux-thunk, semantic-ui-css, source-map-supportkalbroni7/fairy-wallet
- [Snyk] Upgrade: react-dom, asn1-ber, electron-debug, history, react-animated-css, react-copy-to-clipboard, react-hot-loader, react-json-view, react-motion-loop, redux, redux-thunk, semantic-ui-css, source-map-supportkalbroni7/fairy-wallet
Activity
theKashey commentedon Oct 10, 2019
Which version on React you are using?
elementType
should exist since 16.6.I could fix the problem, but I could not prevent it from happening in the future without understanding how to test it, and having the right test for this case.
Please help me create it.
sachetsharma1 commentedon Oct 10, 2019
We are using react version 16.3.2.
Looks like FiberNode is not extensible based on this line: https://github.com/facebook/react/blob/70754f10d4119a999ac9a46b6ea8c11a12a1a72d/packages/react-reconciler/src/ReactFiber.js#L336
Which is causing the issue.
theKashey commentedon Oct 10, 2019
Any real reasons to use so old version?
sachetsharma1 commentedon Oct 14, 2019
We don't upgrade every new version. We have large scale project and it has to be prioritized and go through a long QA cycle. Regardless, this is a minor version upgrade and we didn't expect a breaking change to be introduced.
Is there a plan to fix this bug for pre 16.6 versions?
theKashey commentedon Oct 14, 2019
It's one line change. Harder to test it properly.
ws-perelyaynen commentedon Oct 17, 2019
@theKashey
you can let us to test =)
TimboKZ commentedon Oct 25, 2019
Same problem, working with React v16.3. I imagine downgrading to an earlier version of
react-hot-loader
is the way to go?TimboKZ commentedon Oct 25, 2019
Downgrading to
react-hot-loader@4.6.2
fixed the issue for React 16.3.fix: dont write to elementType if it is not defined, fixes #1357
theKashey commentedon Nov 6, 2019
Fixed in
4.12.16
3 remaining items