current position:Home>Webpack dev server cannot start normally cannot find module 'webpack / bin / config yargs‘
Webpack dev server cannot start normally cannot find module 'webpack / bin / config yargs‘
2022-06-24 09:07:53【Secret Shura】
webpack-dev-server Can't start normally
> webpack-dev-server
internal/modules/cjs/loader.js:796
throw err;
^
Error: Cannot find module 'webpack/bin/config-yargs'
Require stack:
My original version is this
npm run dev After the command Can't start normally , The problems of Netease point to the incompatibility of versions
Change the configuration to “dev”: “webpack serve --mode development”
reason : After upgrading webpack-dev-server And webpack-cli Not normally compatible ,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "webpack serve --mode development"
},
I read this brother's blog
https://blog.csdn.net/Gemini_Kanon/article/details/114368812.
copyright notice
author[Secret Shura],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/175/202206240625104589.html
The sidebar is recommended
- How to read files using JavaScript
- Example of JavaScript FileReader API processing files
- Springboot+vue project tourism information recommendation system [source code open source]
- Ultra wideband pulse positioning scheme, UWB precise positioning technology, wireless indoor positioning application
- Elementui used tabs to step on the pit
- Ant Design Vue - remove the input component border and the border blue shadow effect when getting focus
- Get httponly protected cookies across sub domains through XSS
- Coding specification - Vue project
- Code writing specification - Javascript
- Code specification - HTML
guess what you like
Code writing specification - CSS
CSS Notes 6
Quickly set up PgSQL for serverless
404405 troubleshooting after Vue uses proxy packaging
Vue3 TS learning
What is the charm of python, which is warmly pursued by countless programmers?
HTML Basics
CSS Foundation
CSS (PC side) three methods of traditional page layout
Inline element, block element, inline block element
Random recommended
- 19、 Lua garbage collection of enterprise rapid development platform spring cloud+spring boot+mybatis+elementui
- Detailed introduction to render props and high-level component hoc in react tutorial
- Introduction to high order components (HOC) in react tutorial
- Front end and back end love and hate -- sequel
- When Vue adds on-demand loading to the UI library and starts the project, an error is reported in babel-preset-es2015
- Select in element uses typescript to define initial data, which has no effect
- Vue video player of Vue player plug-in
- React configuration component path reference @ to represent SRC root path
- Use less and CSS modules in react scaffold Engineering
- JavaScript plug-in download instructions and introduction of the web front end, NPM, install, save, and require
- Plug in download instructions and introduction of Vue in the web front end, NPM, install, save
- Summary of front-end common interview questions
- JavaScript automatically adds tag UTF-8 encoding
- Summary of three for loop statements in front-end JavaScript
- Vue hook function
- Monitor page rotation in Vue, and display in full screen on echarts mobile terminal
- Webpack learning notes series 07- how it works
- Webpack learning notes series 06- Packaging Optimization
- Webpack learning notes series 08-hmr hot update
- [Vue] understanding and thinking of new features based on Vue 3
- Fasthttp: go framework ten times faster than net/http (server)
- The difference between preload and prefetch and how to optimize in webpack projects
- Several ways of calling methods to transfer parameters in react render
- Axios usage
- LabVIEW finds prime numbers in an array of n elements
- Elementui form custom regular expression validation text box
- Export markdown to HTML, PDF with browser
- Experience summary of typescript transformation process of old vue2.x projects
- Front end development uses graphql -- vue3 uses graphql
- JS to get the last element of the array
- About Axios request - delete method
- The salon for the first anniversary of the open source of oasis, an ant interactive graphics engine, is coming. On February 26, we will see you in the live studio!
- Best practices for cookie notification
- How does HTML5 implement live streaming? It's worth learning!
- Record webpackdemo configuration
- Android studio uses iconfont Ali vector icon library
- HttpMediaTypeNotSupportedException: Content type ‘application. yml/json; charset=UTF-8‘ not supported
- CSS notes
- Nginx enables geoip2 module to realize national city identification - the road to dream
- Database to query the quantity of books lent in this month. If it is higher than 10, it will display "more than 10 books lent in this month". Otherwise, it will display "less than 10 books lent in this month"