Webpack DevServer in Vagrant – Create-React-App

I am attempting to use the Webpack DevServer inside my Vagrant Box. The Webpack configuration I am using is from the Create-React-App package. I have not modified the default configuration.

I have altered my package.json to attempt to run this . This is my scripts.start entry:

npx webpack serve --host --mode=development

Unfortunately when I run this (inside the vagrant machine) it fails to compile and leaves me with the following error:

ERROR in ./src/index.js 7:2
Module parse failed: Unexpected token (7:2)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| ReactDOM.render(
>   <StrictMode>
|    <App />
|   </StrictMode>,

I am confused why I would be getting this if the default CRA webpack config comes with the required loaders.