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

how to use element-plus on vue #240

Open
hyelimwu opened this issue Jan 8, 2025 · 2 comments
Open

how to use element-plus on vue #240

hyelimwu opened this issue Jan 8, 2025 · 2 comments

Comments

@hyelimwu
Copy link

hyelimwu commented Jan 8, 2025

I just install element-plus on the host and the remote.
but the host doesn't show the view what I expected.

image
image

the remote's vite.config.ts
federation({ filename: "remoteEntry.js", name: "remote", exposes: { "./remote-app": "./src/App.vue", "./AppIndex": "./src/views/AppIndex.vue", }, remotes: {}, shared: { vue: { singleton: true, requiredVersion: dependencies.vue, }, 'element-plus': { singleton: true, requiredVersion: dependencies['element-plus'], }, }, }),

@gioboa
Copy link
Collaborator

gioboa commented Jan 8, 2025

hi @hyelimwu , can you share a basic example of your issue please?

@hyelimwu
Copy link
Author

hyelimwu commented Jan 9, 2025

hi @hyelimwu , can you share a basic example of your issue please?
https://gitlab.com/hyelimwu55/module-federation-vite-vue3

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