Closed martinkadlec0 closed 3 years ago
Closed this since this is probably not the right place to ask this.
@martinkadlec0 Hello. Have you found any thing for this issue?
@wingonlai nope, I ended up using bootstrap file in all projects. The eager option looks broken to me or I don't understand it.
Yeah same here. I tried different things but only the bootstrap file method works. I am creating a React component and I am just trying to give the consumers some flexibility without forcing them to add in a bootstrap file. It seems like the only way though. Thank you.
I've been playing around with the example code, and I got stuck on the
eager: true
option.Even If I set it on react/react-dom in the host app I still get
Uncaught Error: Shared module is not available for eager consumption: webpack/sharing/consume/default/react/react
I tried using
eager: true
on react on both host & remote as well, but that doesn't help. The only time it makes difference is if I use it on dependencies that are shared but only used by the host itself and not by any remotes.My home webpack.config.js
I put the App.jsx code directly to index.js (so there is no dynamic bootstrap import).