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

Version conflicts occur in micro front-end projects #163

Open
loca-spirit opened this issue Apr 22, 2024 · 1 comment
Open

Version conflicts occur in micro front-end projects #163

loca-spirit opened this issue Apr 22, 2024 · 1 comment

Comments

@loca-spirit
Copy link

Because typescript5 is used, version 0.2.2 is used. However, when used with 0.1.13 in a micro front-end project, Reflect.getMetadata('design:type', x, x) will fail.

Scenes:
The micro front-end framework is used to load multiple pages. The current page uses (0.1.13), then enters other pages (uses 0.2.2), and then returns to the old page, click to partially load the module through the tab component. There must be a problem that Reflect.getMetadata('design:type',x,x) fails.

But because the scene is too complicated and I don’t understand the underlying storage principle of metadata, I came here to ask for advice.

expect
It is expected that versions 0.1.13 and 0.2.2 will be compatible with each other.

@rbuckton
Copy link
Owner

0.2.2 should be compatible with 0.1.13 as 0.2.2 has a fallback mechanism that captures the various metadata functions from previous versions before replacing them. If you could put together a minimal repro I can investigate.

In the meantime, if you are using a package manager like npm, yarn, or pnpm you can work around the version conflict using any of those package managers' override mechanisms:

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