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

Forcing a version for a "shared" library from shell #352

Closed
Ketec opened this issue Aug 15, 2023 · 2 comments
Closed

Forcing a version for a "shared" library from shell #352

Ketec opened this issue Aug 15, 2023 · 2 comments

Comments

@Ketec
Copy link

Ketec commented Aug 15, 2023

I cannot seem to find any valid combination of share settings that would enforce a singleton version to use from Shell.

mfe1 uses library@1.0.0
mfe2 uses library@2.0.0
shell is set to share 2.0.0 (shareAll / package.json)
2.0.0 is backwards compatible, but 1.0.0 will not work in mfe2

Now if you navigate to mfe1 - it loads 1.0.0.
Navigating to mfe2 breaks it. 1.0.0 singleton is now already loaded. The forRoot services are invalid.

It ignores the shell 2.0.0 requirement - that is unless I just explicitly import AND use it in Shell (but there is no need for it there - shell does nothing).

Importing every module and sub-module - 100-s of them in the shell AND using them feels stupid.

I can make libraries backward compatible - but not the opposite. New functionality cannot exist in old versions.

@manfredsteyer
Copy link
Contributor

Yes, you are right. This feature is still pending. Comes with one of the next releases.

@Ketec
Copy link
Author

Ketec commented Apr 5, 2024

@manfredsteyer which version was this released in?

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