You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, today i tried to add new plugin for type checking to my RSPack config (ts-checker-rspack-plugin). All works fine, except of types what've been generated for remotes that i use in my current app.
A little bit more details - i have host app and some shell apps, so my host app exposes some functions and components what i consume in my shell. Module-federation/enhanced with rspack works fine and generate types for host app right in runtime. But when i added plugin for type-checking, i got strange behavior that plugin runs earlier than rspack generate types for my host app. As a result, i get errors with files that i import from host app.
Do you have any best-practices how to deal with type-checking whe you use enhanced module federation? Or maybe any workarounds for this case?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, today i tried to add new plugin for type checking to my RSPack config (ts-checker-rspack-plugin). All works fine, except of types what've been generated for remotes that i use in my current app.
A little bit more details - i have host app and some shell apps, so my host app exposes some functions and components what i consume in my shell. Module-federation/enhanced with rspack works fine and generate types for host app right in runtime. But when i added plugin for type-checking, i got strange behavior that plugin runs earlier than rspack generate types for my host app. As a result, i get errors with files that i import from host app.
Do you have any best-practices how to deal with type-checking whe you use enhanced module federation? Or maybe any workarounds for this case?
Beta Was this translation helpful? Give feedback.
All reactions