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

TS errors after switching from webpack's Module Federation to Module Fedaration V2 #2803

Closed
5 tasks done
manvydas-tbol opened this issue Jul 27, 2024 · 1 comment
Closed
5 tasks done

Comments

@manvydas-tbol
Copy link

manvydas-tbol commented Jul 27, 2024

Describe the bug

Hello,

After switching to latest Module Federation version (from webpack's built in federation, to module-federation v2), I started seeing various errors related to types, for example

TS Error 2742':' The inferred type of 'testFunction' cannot be named without a reference to '.pnpm/@TanStack+query-core@5.29.0/node_modules/@tanstack/query-core/build/legacy/queryClient-K0zFyarY'. This is likely not portable. A type annotation is necessary.
Federated types created correctly

Reproduction

not yet

Used Package Manager

pnpm

System Info

mac

Validations

@ScriptedAlchemy
Copy link
Member

@manvydas-tbol provide a repo

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