Trying to run debug task in Visual Studio Code fails on error:
C:\projects\project-name/node_modules/.bin/electron-forge-vscode-win.cmd --inspect-brk=39574
module.js:549
throw err;
^
Error: Cannot find module 'C:\projects\project-name\node_modules\@electron-forge\@electron-forge\cli\dist\electron-forge-start.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
.vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Electron Main Process",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron-forge-vscode-nix",
"windows": {
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron-forge-vscode-win.cmd"
},
"runtimeArgs": [],
"cwd": "${workspaceFolder}"
}
]
}
still have a similar issue with the latest beta 43
/Users/ahmed.hassanein/_ahmed/dev_helper/dev_helper_forged/node_modules/.bin/electron-forge-vscode-nix --inspect-brk=38401
internal/modules/cjs/loader.js:628
throw err;
^
Error: Cannot find module '/Users/ahmed.hassanein/_ahmed/dev_helper/@electron-forge/cli/dist/electron-forge-start'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:625:15)
at Function.Module._load (internal/modules/cjs/loader.js:527:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:839:10)
at internal/main/run_main_module.js:17:11 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Same problem here on latest beta 43
Most helpful comment
still have a similar issue with the latest beta 43