vscode-js-debug: Error: Cannot find module '"/Applications/Visual' when launching `pwa-node` with `npm`
Version: 1.46.1
Commit: cd9ea6488829f560dc949a8b2fb789f3cdc05f5d
Date: 2020-06-17T21:17:14.222Z
Electron: 7.3.1
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.5.0
When I try to debug a project such as this absolute minimal example I cannot launch the Launch via NPM
configuration.
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module '"/Applications/Visual'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at Module._preloadModules (internal/modules/cjs/loader.js:901:12)
at preloadModules (internal/bootstrap/node.js:602:7)
at startup (internal/bootstrap/node.js:273:9)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
irrespective of using debug.javascript.usePreview
on
or off
. (see example repo)
I have cleared my cache in $HOME/Library/Application Support/Code
and disabled ALL extensions, all to no avail.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 20 (9 by maintainers)
I had the same problem and restarting VSCode fixed it… 🤔