Managing multiple instances with Garfish.setExternal #5656
Unanswered
tforssander
asked this question in
Q&A
Replies: 1 comment
-
@tforssander you should add it to externals inside MFE modern.config.js
and inside the shell app
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone,
I stumbled upon a warning in the console while working with Modern.js micro frontends enabled. When exploring the documentation here, it mentions the ability to register additional external dependencies using
Garfish.setExternal
. By default, Modern.js includesreact
andreact-dom
, but I encountered a situation where I needed to add@emotion/react
to the mix. The specific warning I encountered is:I tried to resolve this in the
modern.config.ts
file, but unfortunately couldn't get it work.Any insights or suggestions would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions