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

Mixing Apps in different Angular version #350

Open
carrilloan opened this issue Oct 13, 2022 · 2 comments
Open

Mixing Apps in different Angular version #350

carrilloan opened this issue Oct 13, 2022 · 2 comments

Comments

@carrilloan
Copy link

I have developed a web component in angular 13, which I compile with ngx-build-plus, which I insert into any web page (via an Edge extension).
So far it works very well
The problem occurs when the web page already contains an Angular application (for example in version 8), I can notice that the functionality of the version 8 app is affected, and the web component sends me errors in polyfills of "Uncaught RangeError: Maximum call stack size exceeded" or "Uncaught Error: Already loaded patch: ZoneAwarePromise"
Is there any special configuration in ngx-build-plus to keep the runtime and components independent between the two angular apps? considering that the angular 8 application must be considered as external and that I cannot modify it.
Regards

@pavansai1122
Copy link

Hi @carrilloan ,

I’m also similar issue. Did you got any solution to it ?

@tinkoffspectrum
Copy link

try use
config.output.chunkLoadingGlobal = 'project1';

for your web-component webpack config

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

3 participants