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

"posix" is not exported by "__vite-browser-external"

Open Zara603 opened this issue 1 year ago • 1 comments

Versions

  • vite-plugin-federation: "^1.2.3"
  • vite: "^4.3.2"

running build I get this error

"posix" is not exported by "__vite-browser-external", imported by "node_modules/@originjs/vite-plugin-federation/dist/index.mjs". file: /Users/s305566/Code/vite-scaffold-mfe/node_modules/@originjs/vite-plugin-federation/dist/index.mjs:2:24 1: import * as path from "path"; 2: import path__default, { posix, basename, resolve, join, extname, relative, dirname, parse } from "path";

Zara603 avatar Jun 21 '23 04:06 Zara603

I imagined it can be resolved by installing rollup-plugin-node-polyfills and then I set Screenshot 2023-06-21 at 3 02 57 pm

but not working

Zara603 avatar Jun 21 '23 05:06 Zara603