Приложение Electron дает мне следующий erron после npm запуска сборки, оно отлично работает на dev (npm start), я использовал reactjs для build, когда я запускаю версию dev, она отлично работает после того, как я построил файл .dmg для ma c versin, я получил эту ошибку
мой пакет. json следует,
{
"name": "invoice-manager",
"version": "0.1.0",
"private": true,
"main": "public/electron.js",
"homepage": "./",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.28",
"@fortawesome/free-solid-svg-icons": "^5.13.0",
"@fortawesome/react-fontawesome": "^0.1.9",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1",
"bootstrap": "^4.5.0",
"cross-env": "^7.0.2",
"electron-is-dev": "^1.2.0",
"html2canvas": "^1.0.0-rc.5",
"moment": "^2.26.0",
"momentjs": "^2.0.0",
"number-to-words": "^1.2.4",
"react": "^16.13.1",
"react-bootstrap": "^1.0.1",
"react-bootstrap-date-picker": "^5.1.0",
"react-datepicker": "^2.16.0",
"react-dom": "^16.13.1",
"react-hook-form": "^5.7.2",
"react-router-dom": "^5.2.0",
"react-scripts": "3.4.1"
},
"scripts": {
"react-start": "react-scripts start",
"react-build": "react-scripts build",
"react-test": "react-scripts test",
"react-eject": "react-scripts eject",
"electron-build": "electron-builder",
"build": "npm run react-build && npm run electron-build",
"start": "concurrently \"cross-env BROWSER=none npm run react-start\" \"wait-on http://localhost:3000 && electron .\""
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"concurrently": "^5.2.0",
"electron": "^9.0.0",
"electron-builder": "^22.6.1",
"wait-on": "^5.0.0"
}
}