-
Notifications
You must be signed in to change notification settings - Fork 9
MicoFrontend discoveries
-
CRA MF app won't run if remote i.e @ace/common is having different
NODE_ENVthan host i.e. @ace/admintable. Issue happens because of mismatch betweenreact-jsx-runtime. For CRA MF to run thereact-jsx-runtimeneeds to be same i.e.react-jsx-runtime.developmentorreact-jsx-runtime.productionshould be same in bothremoteandhost. -
In order to avoid the use of
@craco/cracoMicroFrontends is being used in the ACE-Website monorepo. The reason to avoid the use of@craco/cracois its weird behaviour during development env. -
MF is not being used in
@ace/website, rather@ace/commonis being used as package from the monorepo and Gatsby compiles imports outside of./srcwithout any issues. -
MF show weird behaviour when sharing same components but conflicting routers. In order to avoid this scenario
Wrapper Componentsare found to be useful. AlongsideWrapper Componentserror boundaries can be used to avoid the WebApp from breaking even if MF components have any errors.