Errror in starting the project -> Unable to compile federated types
Closed this issue · 3 comments
Hi there, I am doing a simple POC on a consumer MFE but i am having trouble starting the project up. The error message is
Unable to compile federated types, Error: compile TS failed, the original command is 'npx tsc --project D:\Personal Projects\MicroFrontend\myMask Provider MFE\node_modules.federation\tsconfig.0790d0a2174de73475aea7c6f31396c9.json'
Error: ENOENT: no such file or directory, open 'D:\Personal Projects\MicroFrontend\myMask Provider MFE\dist@mf-types.zip'
my rsbuild.config.ts looks like

Does the build not work at all or does it just display this in terminal and app still runs?
The error is displayed in the the terminal and the app runs. However I noticed that this error doesnt appear when configuration module federation using the RsBuild way and only occurs when configuring via tools.rspack object :/
Rsbuild probably configures additional things, like uses a memory fs etc. Maybe override it also causes some interference