originjs / vite-plugin-federation

Module Federation for vite & rollup
Other
2.38k stars 242 forks source link

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

Open Zara603 opened 1 year ago

Zara603 commented 1 year ago

Versions

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 commented 1 year ago

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