Comments (14)
I had the same, I updated electron to the last and problem solve, in the same time I also updated Angular to last version 4.2.6
Here is my modified package.json
"dependencies": {
"@angular/animations": "4.2.6", <-- NEW
"@angular/common": "^4.2.6", <-- NEW
"@angular/compiler": "^4.2.6", <-- NEW
"@angular/core": "^4.2.6", <-- NEW
"@angular/forms": "^4.2.6", <-- NEW
"@angular/http": "^4.2.6", <-- NEW
"@angular/platform-browser": "^4.2.6", <-- NEW
"@angular/platform-browser-dynamic": "^4.2.6", <-- NEW
"@angular/router": "^4.2.6", <-- NEW
......
"devDependencies": {
"@angular/cli": "^1.2.0", <-- NEW
"@angular/compiler-cli": "^4.2.6", <-- NEW
"@ngtools/webpack": "^1.5.0", <-- NEW
"@types/jasmine": "2.5.41",
"@types/node": "7.0.18",
"autoprefixer": "6.7.7",
"codelyzer": "3.0.1",
"copyfiles": "1.2.0",
"cross-env": "4.0.0",
"css-loader": "0.26.1",
"cssnano": "3.10.0",
"electron": "^1.7.4", <-- NEW
"electron-packager": "8.6.0",
"electron-reload": "1.2.0",
from angular-electron.
@coddo did you found any solution?
me too getting same issue.
from angular-electron.
@katherdx I didn't have time to play around with the project since then. Seems a solution was posted right under your comment.
@Gulivertx Sounds great. I'll give it a try during the weekend
from angular-electron.
Re: the message - Electron could not be found. No hard resets for you! when running npm serve, I fixed it by modifying the following in main.ts
Original
if (serve) { require('electron-reload')(__dirname, { }); }
Changed
if (serve) { require('electron-reload')(__dirname, { electron: require(
../node_modules/electron) }); }
from angular-electron.
@coddo Just created one. Appreciate the prod :)
from angular-electron.
I have the same problem but when I modify someone file, it isn't reload my bundle (js).
Problem solved: In the component I can't use the absolute path, just relative path.
from angular-electron.
@coddo try to use only relative paths. Ex: ./src/app/...
from angular-electron.
@coelhoadler I haven't added anything extra to the template. I just cloned and started fiddling with the existing stuff. There are no absolute paths used anywhere and I would never think of using absolute paths in the first place.
from angular-electron.
any news on this?
from angular-electron.
I tried updating like @Gulivertx suggested but only experienced more instability than normal. Had to go back. Mainly in electron's beta. My angular is already up to date. Also I'm not sure what the "@ngtools/webpack": "^1.5.0" is, as I have the regular webpack in my installation.
from angular-electron.
If you're on mac/linux maybe this can help.
Put it into your bash_profile and run serveEl
instead of npm run electron:serve
function serveEl(){ while True; do npm run electron:serve || echo "Server crashed... restarting..." >&2 echo "Press Ctrl-C to quit." && sleep 1 done }
I know it's a work around but at least it serves again the application automatically.
from angular-electron.
having the same issue, all workaround above doesn't help. random crashes after edits.
from angular-electron.
Same issue here.
from angular-electron.
@shaljain I guess you can make a PR with the fix to help all of us :)
from angular-electron.
Related Issues (20)
- Any way to update form angular-electron 13 to 16 HOT 1
- Cannot install angular material HOT 2
- A JavaScript error occurred in the main process HOT 1
- Open link start with "#" on Angular HOT 1
- New window HOT 1
- Karma is now deprecated, what's next? HOT 2
- Firebase Not working in desktop app while it's working in (Web Serve & Build) HOT 2
- How to setup findInPage?
- Loading preload scripts HOT 1
- Notification Mini Icon on window
- Kinectron HOT 2
- Electron Builder for windows: Icon Paths Not Translated with Macro in Output Directory HOT 1
- How can I change the splash screen image? HOT 4
- What about esbuild? HOT 3
- [Bug]: failed: Error in connection establishment: net::ERR_CERT_AUTHORITY_INVALID when connect mqtt with ca certificate
- What about Nrwl NX? HOT 2
- [Bug]: Application gives blank white screen when tried to reload HOT 2
- Add DesktopCapturer to ElectronService HOT 2
- Registration to Electron events from Angular
- Issue with config.target in angular.webpack.js during simultaneous "electron" and "web" development HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-electron.