Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errror in starting the project -> Unable to compile federated types #4274

Open
AsuraKev opened this issue Sep 26, 2024 · 3 comments
Open

Errror in starting the project -> Unable to compile federated types #4274

AsuraKev opened this issue Sep 26, 2024 · 3 comments

Comments

@AsuraKev
Copy link

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\[email protected]'

my rsbuild.config.ts looks like

![image](https://github.com/user-attachments/assets/8d007382-9ad5-432a-a1c7-2eabed79c0ac

I am following the offical Module fed site and examples and not sure what went wrong... thanks :)

@AsuraKev AsuraKev changed the title Errror in starting the project Errror in starting the project -> Unable to compile federated types Sep 26, 2024
@ScriptedAlchemy
Copy link
Member

Does the build not work at all or does it just display this in terminal and app still runs?

@AsuraKev
Copy link
Author

AsuraKev commented Oct 4, 2024

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 :/

@ScriptedAlchemy
Copy link
Member

Rsbuild probably configures additional things, like uses a memory fs etc. Maybe override it also causes some interference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants