Angular application not detected with Electron
Closed this issue · 1 comments
bampakoa commented
I get the message Angular application not detected when using it in an Angular application that is rendered inside an Electron window. Below are some details about my case:
- The Electron window loads the main index.html file of the Angular application using
file://
protocol. - The Angular application has been built with
ng build
- I have unpacked the extension inside the
assets
folder and I am loading it inside Electron using the following snippetsession.defaultSession.loadExtension(__dirname + '/assets/hhbbfggmgbhhpokkkiofojiicllfngkf');
. - I have followed this guide from the Electron official documentation to load the extension.
Thanks!
Notice: The extension is loaded correctly when I use the loadURL
method of Electron to load the Angular application directly from http://localhost:4200
mgechev commented
Thanks for the report! That's not a use case we support.
When we share the project we can consider implementing this feature request based on the community feedback given the focus of the project.