question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Cannot find module '"/Applications/Visual' when launching `pwa-node` with `npm`

See original GitHub issue
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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (9 by maintainers)

github_iconTop GitHub Comments

15reactions
harrisgeo88commented, Oct 19, 2020

I had the same problem and restarting VSCode fixed it… 🤔

0reactions
nikita-fuchscommented, Nov 3, 2021

Reinstalled NVM/node and npm and the issue disappeared.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module '"/Applications/Visual' when running ...
Everything was working fine over the weekend but at work, I'm confronted with the following error while running my debug config. internal/ ...
Read more >
MODULE_NOT_FOUND during launch process in Visual ...
Hi, I am using Visual Studio Code and I created my launch.json ... However, when I click “start debugging”, VSC says “cannot find...
Read more >
Fix Global Installs Not Working | "Cannot find module" error FIX
Getting " Cannot find module " after installing something globally (with -g)? Well, this video shows you how to fix global package/module ...
Read more >
Cannot find module 'js-yaml' when running npm start-node.js
Coding example for the question Error: Cannot find module 'js-yaml' when running npm start-node.js.
Read more >
Cannot find module '"/Applications/Visual' when running ...
Cannot find module '"/Applications/Visual' when running launch.json config. Answer a question I'm developing on OSX and Windows.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found