This was the result for me (though I didn't do this on a new project, but an existing one):
Invalid options object. React Refresh Plugin has been initialized using an options object that does not match the API schema.
options has an unknown property 'disableRefreshCheck'. These properties are valid:
object { exclude?, forceEnable?, include?, overlay?, useLegacyWDSSockets? }
This was the result for me (though I didn't do this on a new project, but an existing one):
Invalid options object. React Refresh Plugin has been initialized using an options object that does not match the API schema.
remove disableRefreshCheck (deprecated option)