New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while packaging a JavaScript file not in a subfolder #66
Comments
|
Well when I use START the same thing is happening when I was using electron-packager: A static index.html with the loading text that I have when starting up my electron app for the first time. I am requiring main.js as my entry point. in my Package.json the main field is:
|
I switched the directories and everything and it does get past the error. I am still running into the static index.html though. For some reason, I just can't figure out how to make my App work all packaged up |
@ahadcove I am not too familiar with the intricacies of Angular 2, can you explain what you mean by "static index.html". I don't quite understand the issue you are having. |
Well my original problem was that when I run my project with ng build or ng serve it works 100% all the routers and everything just works. |
This sounds familiar from an Electron issue. I believe it is due to how in Electron your Angular app is served from a |
Hmmm That sounds like where my problem may lie, but Why would it work with ng serve and build? |
@ahadcove |
Okay so it may have something to do with Hash Locations or something |
@ahadcove FWIW this is not a This might help you out It looks like you need document.write('<base href="file://' + __dirname + '/"/>'); To use a router in Angular in Electron |
Yes, I have that in my index.html already. That is what get's routers working. I have a fully working angular 2 Electron app already, its just when I package it with anything it no longer functions how it should be |
Is the app public, I'm happy to dive into it and see what's going on? |
Sadly, it's not. I'm going to keep picking away at it though. I definitely like the idea of forge though so I may be back when I get this figured out. Thank you for everything |
Im getting this error after I package my app and then try to run it:
Any idea onto why this is happening?
The text was updated successfully, but these errors were encountered: