vite-plugin-federation icon indicating copy to clipboard operation
vite-plugin-federation copied to clipboard

The example of "vue3-demo-esm-shared-store" is not working on 1.2.x version

Open xhhcyh opened this issue 1 year ago • 3 comments

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

  1. Copy [vue3-demo-esm-shared-store] to a new place
  2. 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"
  3. 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"
  4. 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)
  5. yarn install
  6. pnpm run build
  7. pnpm run serve

What is Expected?

The example is supposed to work correctly.

What is actually happening?

image

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

xhhcyh avatar Aug 24 '23 09:08 xhhcyh

same problem. Have you solved it?

lmm1990 avatar Mar 04 '24 09:03 lmm1990

大佬解决了吗?或者怎么处理pinia中的数据共享啊

likang329 avatar Jul 15 '24 08:07 likang329

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?

Issues-translate-bot avatar Jul 15 '24 08:07 Issues-translate-bot