sharepoint online – Gulp serve “Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.”

I want to build a SharePoint web-part, so i run these commands:-

yo @microsoft/sharepoint
Gulp serve

but when the browser opens i will get an empty screen instead of getting a SharePoint web part + the command line will return this error:-

Error - [webpack] WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.