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

Vue2.7, Vite host with webpack remote, "shared" create undefiend paramter(with Reproduction project) #577

Open
SYNTEC-10101348 opened this issue Feb 27, 2024 · 0 comments

Comments

@SYNTEC-10101348
Copy link

SYNTEC-10101348 commented Feb 27, 2024

Versions

  • vite-plugin-federation: 1.3.5
  • vite: 3.0.2

Reproduction

https://github.com/SYNTEC-10101348/MFShare

Steps to reproduce

  1. in webpack project , find the vue.runtime.esm in node_modules, add test code

image
2. build webpack project then host the webiste
3. configure vite to use webpack MF data, find the vue.runtime.esm in node_modules, add test code
4. run vite dev , navigate to http://localhost:8081/test
5.
when share setting is marked in vite
=> vue.js from vite and webpack both will be used

image

when share setting is on in vite
=> only vue.js from vite will be used but "ref" parameter is null
image

What is Expected?

the "ref" parameter should not be undefined when shared setting is on
singleton without error

What is actually happening?

ref is undefined

@SYNTEC-10101348 SYNTEC-10101348 changed the title Vue2.7, Vite host with webpack remote, "shared" create undefiend paramter Vue2.7, Vite host with webpack remote, "shared" create undefiend paramter(with Reproduction project) Mar 28, 2024
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