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

no support for sharing monorepo aliases #213

Open
DanielSegal1 opened this issue Dec 4, 2024 · 1 comment
Open

no support for sharing monorepo aliases #213

DanielSegal1 opened this issue Dec 4, 2024 · 1 comment

Comments

@DanielSegal1
Copy link

Hey,
Recently, when trying to shift from originjs's plugin to this one, I stumbled across an issue.
Im using nx, and Im trying to share from my app, a "core" library I also have in the monorepo.
In nx, I have alias for the library, and instead of importing 'lib-name' I use '@monorepo-name/lib-name'.
(The reason for that is that it lets me not needing to publish and install the packages that I maintain inside the monorepo)
The package Im sharing this to (lets name it 'federated-lib') is in the repo, and it is too, using the core library with the aliasing.

I'm currently using originjs's federation plugin and it works great but when trying to switch to this plugin I get an error of something along the lines of 'module @monorepo-name/lib-name/package.json not found'.

I tried whatever I can, fiddling around with the aliasing in the tsconfig but had no luck.
Would be glad to hear from you what I should be doing because this blocks me from upgrading to this plugin.

Also, unfortunately I wouldn't be able to share the code as it is company private.
Thanks for any help.

@gioboa
Copy link
Collaborator

gioboa commented Dec 4, 2024

Hi @DanielSegal1 I see, can you create a basic example that reproduce your scenario? This will help us to debug the problem. 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