originjs / vite-plugin-federation

Module Federation for vite & rollup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rollup failed to resolve import "__federation_fn_satisfy" from "virtual:__federation_fn_import

mannymu opened this issue · comments

Versions

  • vite-plugin-federation: 1.3.3
  • vite: 4.5.0

Reproduction

This error occurs in the server build of vue SSR

Steps to reproduce

What is Expected?

What is actually happening?

同问

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


The same question

image
Why did I fail to introduce 'virtual:federation' and the console prompt: virtual:__federation__ does not exist

image

The same question. Any ideas?

same,please fix it

image

In m case the only way is to put in ignore of optimization, other wa is set as external because this function is virtual and injected b plugin.

I use this because I'm use import {} from "federation"

optimizeDeps: {
        exclude: ["__federation__"],
      },