vite-plugin-federation
vite-plugin-federation copied to clipboard
The example of "vue3-demo-esm-shared-store" is not working on 1.2.x version
Versions
- vite-plugin-federation: 1.2.0~1.2.3
- vite: ^4.0.3(The same with your example)
Reproduction
https://github.com/originjs/vite-plugin-federation/tree/main/packages/examples/vue3-demo-esm-shared-store
Additional Details
It's related to #315 "There's an example with shared stores?"
Steps to reproduce
- Copy [vue3-demo-esm-shared-store] to a new place
- vue3-demo-esm-shared-store/remote-A/package.json:change "vite-plugin-top-level-await": "^1.1.1" to "vite-plugin-top-level-await": "1.1.1"
- vue3-demo-esm-shared-store/remote-B/package.json:change "vite-plugin-top-level-await": "^1.1.1" to "vite-plugin-top-level-await": "1.1.1"
- vue3-demo-esm-shared-store/package.json:change "@originjs/vite-plugin-federation": "workspace:*" to "@originjs/vite-plugin-federation": "1.2.x" (1.2.x means:1.2.0~1.2.3)
- yarn install
- pnpm run build
- pnpm run serve
What is Expected?
The example is supposed to work correctly.
What is actually happening?
when using the newest version(1.2.3) of [vite-plugin-federation] plugin. The error occured like above. The example is working on v1.1.14 version that I have tried. But not working on all version of 1.2
same problem. Have you solved it?
大佬解决了吗?或者怎么处理pinia中的数据共享啊
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Has the boss solved it? Or how to handle data sharing in pinia?