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
If you are reporting a bug or having an issue setting up React Hot Loader, please fill in below. For feature requests, feel free to remove this template entirely.
Description
I've started to get this warning message from React.
Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.
I don't use this method componentWillMount on my code. I don't know exactly since when I'm getting this message. I've updated (React included), installed and removed some packages over the last few days.
Obs: The full error message is on the SO question.
I opened a new VSCode window and opened my node_modules folder to search inside of its files and found this:
react-lifecycles-compat.js
function componentWillMount() {
// Call this.constructor.gDSFP to support sub-classes.
var state = this.constructor.getDerivedStateFromProps(this.props, this.state);
if (state !== null && state !== undefined) {
this.setState(state);
}
}
Run these commands in the project folder and fill in their results:
node -v: 10.16.2
npm -v: 6.9.0
Then, specify:
Operating system: Windows 10
Browser and version: Chrome v78
Reproducible Demo
Please take the time to create a new project that reproduces the issue.
You can copy your project that experiences the problem and start removing things until you’re left with the minimal reproducible demo. This helps contributors, and you might get to the root of your problem during that process.
Push to GitHub and paste the link here.
The text was updated successfully, but these errors were encountered:
If you are reporting a bug or having an issue setting up React Hot Loader, please fill in below. For feature requests, feel free to remove this template entirely.
Description
I've started to get this warning message from React.
I don't use this method
componentWillMount
on my code. I don't know exactly since when I'm getting this message. I've updated (React included), installed and removed some packages over the last few days.I've asked about it on SO, but sill no answer.
https://stackoverflow.com/questions/58891130/how-to-find-out-which-package-is-using-the-unsafe-componentwillmount-method?noredirect=1#comment104047811_58891130
Obs: The full error message is on the SO question.
I opened a new VSCode window and opened my
node_modules
folder to search inside of its files and found this:react-lifecycles-compat.js
Also this is in my
package-lock.json
QUESTION
Could this warning be related to this library that
react-hot-loader
requires?Expected behavior
This warning shouldn't be happening.
Actual behavior
The warning.
Environment
React Hot Loader version:
package.json
Run these commands in the project folder and fill in their results:
node -v
: 10.16.2npm -v
: 6.9.0Then, specify:
Reproducible Demo
Please take the time to create a new project that reproduces the issue.
You can copy your project that experiences the problem and start removing things until you’re left with the minimal reproducible demo. This helps contributors, and you might get to the root of your problem during that process.
Push to GitHub and paste the link here.
The text was updated successfully, but these errors were encountered: