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

build single app AOT fails #1

Open
stekontar opened this issue Dec 4, 2019 · 1 comment
Open

build single app AOT fails #1

stekontar opened this issue Dec 4, 2019 · 1 comment

Comments

@stekontar
Copy link

stekontar commented Dec 4, 2019

Hi,
First of all this is a great sample.

Currently single application could be build only in JIT.
The following command fails due to double definitions on app.module and app.module-export
"ng build app1 - prod - build-optimizer - vendor-chunk - named-chunks"

My goal is to create individual (docker) applications that would dynamically be imported on core-app.
Imagine a Portal that would have all the common files (angular, polyfills ect... ) and would be able to load any application dynamically.
(still trying to find the proper way)
I read your comment about
https://github.com/lmeijdam/angular-umd-dynamic-example
but I haven't make it to work

@kievsash
Copy link
Owner

kievsash commented Dec 4, 2019

Hi, Thank you for the feedback!
Unfortunately, my current workload excludes the possibility to get deeper into your issue. I hope I will be able to take a look next year... sorry.
But your idea is quite interesting

  1. Core app should request some API for json with files to be uploaded (with urls of docker containers)
  2. And then upload it with dynamic script tag.
  3. Attach Angular module dynamically
    Not ready to provide some proved solution at the moment
    Possibly you can ask https://twitter.com/ManfredSteyer

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