Module Federation error: Module not found: Error: Can't resolve 'search/SearchAppModule' in 'relative path' #18151
Unanswered
potocnikvid
asked this question in
Q&A
Replies: 1 comment 2 replies
-
It means |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to share a module from an remote Angular app to a host React app. I tried to mimic this repo: https://github.com/harshmons/micro-front-end-react-application
Got the remote Angular app to working correctly:
webpack.config.js
package.json
angular.json
loadApp.js
bootstrap.ts
main.ts
** Angular Live Development Server is listening on localhost:3001, open your browser on http://localhost:3001/ **
But I am having problems with the host in React.
craco.config.js
package.json
App.js
src/modules/SearchAppModule.js
Thought it was a TypeScript problem, tried declaring modules, did not work:
Microfrontend Cannot find module error for module federation
Tried adding another remote shared module in a similar way, did not work.
Tried changing names in ModuleFederationPlugin, did not work.
Beta Was this translation helpful? Give feedback.
All reactions