I am running with the same version of the netlify-cli and found it working. Actually, I got the same error in the beginning when I had issues in establishing the debugging(one of the motivations for writing this article).
A couple of things that I could found to resolve is,
- If you have installed netlify locally, have this property set correctly
"program": "${workspaceFolder}\\node_modules\\.bin\\netlify"
If you have netlify globally, please omit the program property altogether.
- If you are using pwa-node, make sure you have
resolveSourceMapLocations defined.
Here is an example of the launch.json file where netlify is defined globally with pwa-node,
{
"version": "1.0.0",
"configurations": [
{
"name": "Netlify Debugging",
"type": "pwa-node",
"request": "launch",
"runtimeArgs": ["run-script", "debug"],
"runtimeExecutable": "npm",
"skipFiles": ["<node_internals>/**"],
"resolveSourceMapLocations": [
"${workspaceFolder}/**",
"!**/node_modules/**"
]
}
]
}
Please let me know if it helps. If you happen the fix it in any other ways, that would be great too to be aware Michal.
Another thing is, make sure the same port netlify is not running in parallel too..
With all the explained here, I am able to run it.. Just done the same settings again as it explained..