Answer the question
In order to leave comments, you need to log in
How to make Visual Code debugger friendly with an Electron application?
Greetings.
Here we inherited an application written in Electron + React + Redux. To say that they transferred the project disgustingly is to say nothing (only complete obscene language in my head):
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Main 1",
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
"windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
},
"program": "${workspaceRoot}/app/main.dev.js",
"protocol": "inspector",
},
]
}
App threw an error during load
/home/zloy/Projects/test-aaa/app/main.dev.js:13
import { app, BrowserWindow } from 'electron';
^
SyntaxError: Unexpected token {
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInThisContext (vm.js:303:10)
at Module._compile (internal/modules/cjs/loader.js:660:28)
...
}
import { app, BrowserWindow } from 'electron';
import { autoUpdater } from 'electron-updater';
import log from 'electron-log';
import MenuBuilder from './menu';
........
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question