DEV Community

Discussion on: Setup a React app with Webpack and Babel

Collapse
 
idiglove profile image
Faith Morante

In latest webpack, it should be devServer -> static instead of devServer -> contentBase. Otherwise will get this error:

[webpack-cli] Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
Enter fullscreen mode Exit fullscreen mode

Other than, that thanks for the article, cheers

Collapse
 
chengdongxue profile image
VictorXue

Are you met the same error?

Collapse
 
deadwing7x profile image
Anubhav Sarkar

Hey, if you are comfortable with it. You can raise a PR with the changes and I will merge the changes to the repo. Thanks for letting everyone know about the recent changes.

Collapse
 
msabtainanwar profile image
Muhammad Sabtain Anwar

Same issue .

Collapse
 
nguyenhien16091997 profile image
NGUYEN HIEN