Tag Archives: vue-cli

Solve the problem of [WDS] disconnected in the console of Vue cli project at runtime! error

At project runtime

After NPM run dev is entered into the console, the browser will display the project page, but [WDS] disconnected! Wrong

Although sometimes does not affect, but as a qualified programmer

We should try our best to repair it to avoid problems in the future

What’s the solution

In the compilation environment (take vscode as an example)

Find the webpack configuration file for the project directory

That’s webpack config JS

Find devserver in the configuration file and add the following

This is the perfect solution

Build the front-end Vue environment and install the solution of please try running this command again as root / administrator

build the front-end Vue environment, install the solution of please try running this command again as root/administrator for Vue cli build the front-end Vue environment

Reference article:

(1) Build the front-end Vue environment and install the solution of please try running this command again as root/administrator

(2) https://www.cnblogs.com/yajunLi/p/6365758.html

Let’s make a note.