Yeah, i've also encountered that issue (and solved it the same way).
Which btw? Is exactly the argument some people made in the comments above in regards for high maintainance, and error prone code when NOT using CRA, and going for pure Webpack solution.
Yeah, but migration to newer versions won't be that difficult if you have the habit of checking for any potential refactoring in your project regularly.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Trying to follow through this post, however I encountered
Error: Cannot find module 'webpack-cli/bin/config-yargs'
error while running thenpm start
.Changing from
"start": "webpack-dev-server --mode=development --open --hot"
To
"start": "webpack serve --mode=development --open --hot"
resolved the issue.
Seems like the interface in not compatible with webpack5 now. webpack-dev-server
Thanks. Will update it.
Yeah, i've also encountered that issue (and solved it the same way).
Which btw? Is exactly the argument some people made in the comments above in regards for high maintainance, and error prone code when NOT using CRA, and going for pure Webpack solution.
Yeah, but migration to newer versions won't be that difficult if you have the habit of checking for any potential refactoring in your project regularly.