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

Bug with Vite

Open jtan80813 opened this issue 1 year ago • 3 comments

Versions

  • vite-plugin-federation:
  • vite:

Steps to reproduce

Try adding shared in vite.config.ts Ex:

federation({
      name: "host-app",
      remotes: {
        remoteRemixApp: "http://localhost:3010/assets/remoteEntry.js",
      },
      shared: ["react", "react-dom"],
}),

What is Expected?

Should not output react-dom cannot be external

What is actually happening?

When building it, it errors out saying like Entry module "react-dom" cannot be external.

jtan80813 avatar Jul 16 '24 11:07 jtan80813

I have the same problem

Capricair avatar Mar 14 '25 09:03 Capricair

这个插件停止维护了吗?

Capricair avatar Mar 14 '25 09:03 Capricair

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Has this plugin stopped maintaining?

Issues-translate-bot avatar Mar 14 '25 09:03 Issues-translate-bot