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

module federation dependencies mis-used #9305

Open
XRFate opened this issue Nov 14, 2024 · 2 comments
Open

module federation dependencies mis-used #9305

XRFate opened this issue Nov 14, 2024 · 2 comments
Labels

Comments

@XRFate
Copy link

XRFate commented Nov 14, 2024

Describe the bug

module-ferderation-webpack example required rs-pack dependency

@XRFate XRFate changed the title module federation dependencies error module federation dependencies mis-used Nov 14, 2024
@itaymendel
Copy link
Contributor

hi, i do not understand the issue.
rspack is used via the rspack plugin here - https://bit.cloud/frontend/module-federation/react/producer/~code/producer.bit-app.ts#l1

the dependency graph does not show packages, only components.

@XRFate
Copy link
Author

XRFate commented Nov 14, 2024

sorry about this misunderstanding, the producer example suppose to require webpack but instead it requires mf-rspack type

import { MfReact } from '@frontend/module-federation.react.apps-types.mf-rspack';

I don't know if this is the problem that resulted in

Could not load content for webpack://producer/remote-scope/react/producer/button.tsx (Fetch through target failed: Unsupported URL scheme; Fallback: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME)

when i try to bit run it i found in debug panel source tab, with button.tsx was not being loaded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants