VScode starts the vue project by configuring launch.json

VScode starts the vue project by configuring launch.json. Half of running will report an error. The solution
configuration is as follows:

{
  "version": "0.2.0",
  "configurations": [
      {
        "type": "node",
        "request": "launch",
        "name": "webpack-dev-server",
        "runtimeExecutable": "npm",
        "env": {
          "NODE_ENV": "development",
        },
        "runtimeArgs": [
          "run-script",
          "start"
        ],
        "port": 9229,
        "outputCapture": "std"
      }
  ]
}

run result:

clipboard.png

clipboard.png

is there a social solution?

Mar.11,2021

I have the same problem. You can start npm run dev
from the command line, where: package.json

{
    "scripts": {
        "web": "webpack-dev-server --config build/webpack.dev.conf.js"
    }
}
Menu