Skip to content
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

InvalidConfigurationError #18

Open
cissemy opened this issue Dec 1, 2019 · 10 comments
Open

InvalidConfigurationError #18

cissemy opened this issue Dec 1, 2019 · 10 comments

Comments

@cissemy
Copy link

cissemy commented Dec 1, 2019

Hi,
I am getting the folowing error on windows 10 :
Error InvalidConfigurationError: Build for macOS is supported only on macOS, please see https://electron.build/multi-platform-build
at C:\Users\cisse\angulardemo\angular-desktop\node_modules\app-builder-lib\src\packager.ts:408:15
at Generator.next ()
Thanks

@BenjaminDobler
Copy link
Owner

You can just adjust the packagerConfig in your package target according to your needs.

@cissemy
Copy link
Author

cissemy commented Dec 1, 2019 via email

@BenjaminDobler
Copy link
Owner

Hey,
i mean in the angular.json the package target.
There you will find a packagerConfig where you can set the typical electron builder configs.
Just adjust them to package a windows only package.

@cissemy
Copy link
Author

cissemy commented Dec 2, 2019 via email

@cissemy
Copy link
Author

cissemy commented Dec 4, 2019

Hi,
The application is not loading index.html:
win.loadURL(format({
pathname: join(__dirname, 'index.html'),
protocol: 'file:',
slashes: true
}));
Thanks

@BenjaminDobler
Copy link
Owner

BenjaminDobler commented Dec 4, 2019 via email

@cissemy
Copy link
Author

cissemy commented Dec 4, 2019 via email

@cissemy
Copy link
Author

cissemy commented Dec 4, 2019

@BenjaminDobler
Copy link
Owner

Hey,
please try to set the target option in your tsconfig.json to es5.
I think electron does not play nicely with differential module loading introduced on NG8
(read more about it here at the bottom of the article: https://www.techiediaries.com/angular-electron/)
Let me know if that helps

@cissemy
Copy link
Author

cissemy commented Dec 4, 2019

Hi
That works.
My dream now is to be able to deploy ngtron on raspberry pi (raspbian).
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants