angular-architects / module-federation-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"[ERROR] Two output files share the same path but have different contents" when building native federation cache

ips219 opened this issue · comments

I'm trying to migrate from webpack to native federation...

I've managed to make it work with one of my mfe, but I've another that is failing to generate the native federation cache bundle throwing the error: [ERROR] Two output files share the same path but have different contents when building native federation cache

image

The full console output:
error.txt

I'm not sure if the problem comes from the compatibility of fullcalendar library (I may try to get feedbackfrom them) with esbuild or with the native federation plugin itself.

I've tried to skip fullcalendar libraries in the federation.config.js
image

But I get the same error, for some reason it seems that is included inthe bundle.

Any idea of how can I workround this issue?

Thanks and best regards.

Can you please try to skip full calender via a RegExp:

skip:[
/^@fullcalendar//
]

This includes everything starting with fullcalender.

I will have a closer look soon to find out why fullcalender is causing this issue.

After adding the skip with the regexp as you said it worked.

image

Thank you for your support.

I thought it worked at library level, The regexp works in the same way in the "share" settings?