When working on local development, everything is functioning properly. However, when attempting a production build and importing remoteEntry.js from the host to the remote port, an error message appears stating
"Failed to fetch dynamically imported module error: http://localhost:2000/remoteEntry.mjs."
It seems that this error is caused by the browser not recognizing it as a script. Upon inspecting the sources, I couldn't find any mention of the js option. What steps can be taken to resolve this issue?
An example of tsconfig:
"target": "esnext",
"module": "esnext",
"lib": ["esnext", "dom"],
Environment: Angular 13, NX Monorepo, @nrwl/angular/module-federation(libs)