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

Can't build multiple times use vite javascript api #228

Open
faga295 opened this issue Dec 23, 2024 · 2 comments
Open

Can't build multiple times use vite javascript api #228

faga295 opened this issue Dec 23, 2024 · 2 comments

Comments

@faga295
Copy link

faga295 commented Dec 23, 2024

In our project, we want to create multiple remoteEntry files as "plugins". To achieve this, I'm using the Vite JavaScript API to build the project multiple times, but it crashes. I suspect my usage may not be following the best practices, but I hope this functionality can be supported.

Here is a minimal reproduction of the issue: https://github.com/faga295/module-federation-vite-example

@gioboa
Copy link
Collaborator

gioboa commented Jan 8, 2025

Hi @faga295 can you share the steps to reproduce the issue please?

@faga295
Copy link
Author

faga295 commented Jan 9, 2025

Sure~, just run npm run build, you will get this error
image

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