Giter Site home page Giter Site logo

Comments (14)

Gulivertx avatar Gulivertx commented on May 13, 2024 3

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.

katherdx avatar katherdx commented on May 13, 2024 2

@coddo did you found any solution?
me too getting same issue.

from angular-electron.

coddo avatar coddo commented on May 13, 2024 1

@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.

shaljain avatar shaljain commented on May 13, 2024 1

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.

shaljain avatar shaljain commented on May 13, 2024 1

@coddo Just created one. Appreciate the prod :)

from angular-electron.

coelhoadler avatar coelhoadler commented on May 13, 2024

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.

coelhoadler avatar coelhoadler commented on May 13, 2024

@coddo try to use only relative paths. Ex: ./src/app/...

from angular-electron.

coddo avatar coddo commented on May 13, 2024

@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.

caiusCitiriga avatar caiusCitiriga commented on May 13, 2024

any news on this?

from angular-electron.

Snow-Okami avatar Snow-Okami commented on May 13, 2024

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.

caiusCitiriga avatar caiusCitiriga commented on May 13, 2024

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.

celestale avatar celestale commented on May 13, 2024

having the same issue, all workaround above doesn't help. random crashes after edits.

from angular-electron.

ralph089 avatar ralph089 commented on May 13, 2024

Same issue here.

from angular-electron.

coddo avatar coddo commented on May 13, 2024

@shaljain I guess you can make a PR with the fix to help all of us :)

from angular-electron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.