-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
@mf-types.zip not being generate since 0.2.7 #2827
Comments
@2heal1 can you take a look? |
does the build crash? or just throw error? |
@ScriptedAlchemy |
Hi guys! I bumped into the same exact issue, but in my case types are not generated at all. The bundle is built (static JS-chunks + manifest files), but neither The error i get when i run build script: The The I have Another problem is that
But when i run my build command again with specific typesFolder name, i still meet the same error message as it was: |
Some updates to my notes here :) So if we take a closer look to an error it firstly says that TS compile failed: So if i try to run this command manually i get i few TS erros while compiling. These errros come from Soooo if i go to So the problem of not building @mf-types.zip is the TS error inside
This is where this line of code is declared https://github.com/DefinitelyTyped/DefinitelyTyped/blame/master/types/ws/index.d.ts#L312 And my Node version is Rolling back to "@types/ws": "8.5.4" probably fixes the problem jfyi @2heal1 |
Do you happen to have any updates on this one? |
because now mf types will use project's tsconfig.json , so you can set |
I have this in my tsconfig. The same error is still there.. |
Try to run the specified command from the error message (in your case it is |
Hi guys, I'm also experiencing this problem, when I run Then stamp the ts type so he doesn't report errors, and you can generate the @mf-types.zip file |
@ryok90 upgrade to |
We've upgraded to this version and can confirm that the types are now generated as expected. For those still facing this issue: Ensure you do not have Typescript errors within your project. When we had errors this lead to the mf-types.zip not being generated. If that file was missing for a remote app, the host app would then delete the types of the remote app from its mf-types folder too. So ensure there are no Typescript errors in any of your applications. |
I came across this issue as well and was able to resolve by changing the exposed path from the root of the project to it's relative path. The problem was hard to identify because using the path from the root of the project worked when the type generation was disabled. Configuration that caused the failure:
Fixed configuration:
|
Yeah. Same rules as package.json exports field |
In my point of view the solution is already addressed here by:
I will write a short doc for this on the Error Catalog guide |
Describe the bug
GenerateTypesPlugin
is having trouble generating the zip file for@mf-types
.Replication is just bumping the plugins version to
0.3.3
of an rspack app from mf examples repo..
Reproduction
https://github.com/module-federation/module-federation-examples/tree/master/rspack_hmr/app2
Used Package Manager
pnpm
System Info
Validations
The text was updated successfully, but these errors were encountered: