I found that the gutenberg plugin at this time is currently going ahead, before integrating into wordpress core.
so the errors will be fixed faster.
This error is common when using localhost.
Please install the plugin gutenberg, which will resolve the error!
Remember to activate gutenberg.
I often use this way and good results!
You install and activate the gutenberg plugin. Is the easiest method at this time !