I’m facing the same issue, and setting "extends": null
didn’t solve it for me either. I created the app using Create React App (CRA). When I run npm run dist
, everything builds correctly, but when I execute myapp.exe
, I get the error: enter image description here
Can someone help me figure out what’s going wrong?
My package.json is:
{
(...)
"main": "main.js",
(...)
"scripts": {
(...)
"start:electron": "electron .",
"dist": "electron-builder"
}
(...)
"build": {
"extends":null,
"appId": "com.name.app",
"files": [
"build/**/*",
"main.js",
"backend/**/*",
"node_modules/**/*"
],
"directories": {
"buildResources": "public",
"output": "dist"
},
},
"win": {
"icon": "public/iconos/logoAntea.png",
"target": "nsis"
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"perMachine": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "Datos Moviles",
"uninstallDisplayName": "Datos Moviles",
"include": "nsis-config.nsh"
}
}
}