c4wrd / angular2-electron-boilerplate

Simple boilerplate for electron, with an easy to use development flow.
MIT License
11 stars 10 forks source link

No errors shown on Dev Console #7

Open ghost opened 8 years ago

ghost commented 8 years ago

of the many Angular 2 Electron seeds out there, this one is indeed the best. Not over-engineered, up-to-date and showing electron message communication. Thank you!

One question though: console Messages don't show up within the embedded dev tool window (Mac OS X), this makes solving Angular errors a bit hard. Do you have an idea why?

c4wrd commented 8 years ago

I have an idea, although I'm currently trying to find the best way to update to Angular 2 release before I prioritize this issue. Currently it looks like they all of a sudden abandoned SystemJS and use Web pack now, as well as using UMD modules for the Angular packages. Not very difficult to update, but I've been strapped for time and didn't want to work on it until the Angular compiler is in a better working state (currently is very difficult to incorporate in this seed). Sorry this seems unrelated, but i am currently prioritizing the version issue before I work on that. Thanks for the feedback, I tried to make this as intuitive as possible to use!

ghost commented 8 years ago

Thank you for your quick response. Sure, not really a big deal, I've set up lite-server so I can easily run it within an electron-less chrome browser and view the errors. Just wanted to report that.

Chrome does not know 'require' in a web-based environment, to allow web-based hosting, I've used the following condition to make it work within both environments.

    if(typeof require === 'function') {
        System.set('electron', System.newModule(require('electron')));
    } 

In case you want to use it.