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

Invalid CSS path in library mode #670

Open
mxvsh opened this issue Jan 21, 2025 · 0 comments
Open

Invalid CSS path in library mode #670

mxvsh opened this issue Jan 21, 2025 · 0 comments

Comments

@mxvsh
Copy link

mxvsh commented Jan 21, 2025

Versions

  • vite-plugin-federation: 1.3.9
  • vite: 6.0.5

Reproduction

https://github.com/mxvsh/vite-mfe-lib

Steps to reproduce

  1. Install the dependencies in host and remote
  2. Build the remote
  3. Start host in dev mode

What is Expected?

It should be able to load the remote app along with its styles.

What is actually happening?

When I try to build the remote in library mode with "react" and "react-dom" externalized, then in the host app, the CSS won't get loaded, it points to an invalid URL. This is not the case with "normal" Vite + React application.

Q. How do we actually render the remote app (in host) built using library mode?

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

1 participant