Open charafsalmi opened 2 years ago
by making NG use yarn and by using --force on every ng update, I got this and it looks like it works:
{
"name": "angular-electron-boilerplate",
"version": "0.0.0",
"main": "./dist/main/electron-main.js",
"scripts": {
"start": "electron .",
"build:dev:renderer": "ng build",
"build:prod:renderer": "ng build --configuration production",
"build:dev:main": "webpack --config ./src/main/webpack.ts --mode development",
"build:prod:main": "webpack --config ./src/main/webpack.ts --mode production",
"build:dev:preload": "webpack --config ./src/preload/webpack.ts --mode development",
"build:prod:preload": "webpack --config ./src/preload/webpack.ts --mode production",
"build:dev:all": "npm run build:dev:renderer && npm run build:dev:main && npm run build:dev:preload",
"build:prod:all": "npm run build:prod:renderer && npm run build:prod:main && npm run build:prod:preload",
"build:watch:renderer": "ng build --watch",
"build:watch:main": "webpack --watch --config ./src/main/webpack.ts --mode development",
"build:watch:preload": "webpack --watch --config ./src/preload/webpack.ts --mode development",
"build:watch:all": "npm-run-all -p -r build:watch:renderer build:watch:main build:watch:preload",
"update:electron": "npm update electron electron-packager",
"update:webpack": "npm update webpack webpack-cli",
"update:angular": "ng update @angular/cli @angular/core",
"update:material": "npm update @angular/material @angular/cdk",
"test:test": "ng test",
"test:lint": "ng lint",
"test:e2e": "ng e2e",
"package": "electron-packager . angular-electron-boilerplate --asar --overwrite --prune=true --derefSymlinks=false --ignore=\"/node_modules|/src|.vscode|.editorconfig|.gitignore|.map|angular.json|tslint.json|README.md|package-lock.json|LICENSE\" --out=release-builds",
"release": "npm run build:prod:all && npm run package"
},
"private": true,
"dependencies": {},
"devDependencies": {
"@angular-devkit/build-angular": "^13.3.1",
"@angular/animations": "^13.3.1",
"@angular/cdk": "^13.3.2",
"@angular/cli": "^13.3.1",
"@angular/common": "^13.3.1",
"@angular/compiler": "^13.3.1",
"@angular/compiler-cli": "^13.3.1",
"@angular/core": "^13.3.1",
"@angular/forms": "^13.3.1",
"@angular/language-service": "^13.3.1",
"@angular/material": "^13.3.2",
"@angular/platform-browser": "^13.3.1",
"@angular/platform-browser-dynamic": "^13.3.1",
"@angular/router": "^13.3.1",
"@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^14.0.13",
"@types/webpack": "^4.32.1",
"codelyzer": "^6.0.0",
"electron": "^12.0.2",
"electron-packager": "^15.2.0",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "^6.3.17",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"npm-run-all": "^4.1.5",
"protractor": "~7.0.0",
"rxjs": "~6.5.3",
"ts-loader": "^8.0.3",
"ts-node": "^9.0.0",
"tslib": "^2.0.0",
"tslint": "~6.1.0",
"typescript": "^4.1.6",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11",
"zone.js": "~0.11.4"
}
}
Here is the log. Windows 10.
And then:
Here is the log: