webpack-cli error

PS C:\Users\MUHAMMED ACIBALIK\WebstormProjects\JavaScriptLearn\ModullerProject> npm run start

> modullerproject@1.0.0 start
> webpack-dev-server --output-public-path=/bundles/ --mode development --open --hot

[webpack-cli] Invalid options object. Dev Server has been initialized using an options object that does not match t
he API schema.
- options has an unknown property 'index'. These properties are valid:
object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, historyApiFallback?, host?, hot?
, http2?, https?, ipc?, liveReload?, magicHtml?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, o
pen?, port?, proxy?, setupExitSignals?, static?, watchFiles?, webSocketServer? }

 

how do i solve this error

2 comments
Comment actions Permalink

Looks like your webpack configuration file has to be changed, as it's format is not compatible with webpack-cli version you are using

1
Comment actions Permalink

Thank you Elena Pogorelova you saved me a lot of trouble

0

Please sign in to leave a comment.