gitdocs icon indicating copy to clipboard operation
gitdocs copied to clipboard

Build Errors

Open mberneis opened this issue 5 years ago • 1 comments

I just installed gitdocs, did a npm -g upgrade to make sure all dependencies are up-to-date and when running a gitdocs build I am getting the following build errors:

 Warning: Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.

* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.

Please update the following components: %s%s
❯ Warning: Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.

... (many more)

Any idea what can cause this? - I am also surprised about the %s%s in the error message - seems like the template did not get any parameters

mberneis avatar Mar 11 '20 16:03 mberneis

I can confirm this behaviour. I discovered that similar warnings are noted here.

You're getting this warning because componentWillMount is deprecated in newer React versions. If you're not using componentWillMount anywhere then one of your libraries is and it needs to be updated.

bauhouse avatar Mar 19 '20 15:03 bauhouse