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

When using Vite 6.0 + @module-federation/vite 1.2.0,the application fails to build and run #227

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

Comments

@menghany
Copy link

menghany commented Dec 23, 2024

main branch vite6: https://github.com/menghany/mf-vite-report,
v5 branch vite5: https://github.com/menghany/mf-vite-report/tree/v5
This is my simple reproducible project,
cd remote-react && pnpm i && pnpm run dev
cd host-vue3 && pnpm i && pnpm run dev
The page does not render. Additionally, when I run pnpm run build for both projects, I encounter the following error: factory is not function.
However, when I use Vite 5.4.11 and @module-federation/vite 1.1.9, everything works correctly.

@gioboa
Copy link
Collaborator

gioboa commented Dec 23, 2024

Hi @menghany I see, can you host your application on GitHub please?

@menghany
Copy link
Author

menghany commented Dec 23, 2024

Hi @menghany I see, can you host your application on GitHub please?

Of course,https://github.com/menghany/mf-vite-report,
main branch is vite 6.0 + 1.2.0, v5 branch is vite 5.4.11 + 1.1.9

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