You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue exhibits the same behavior described in #14428. However, the solutions provided there do not seem to work on either Windows or macOS so I decided to open new issue. I couldn't even follow steps from your SSR tutorial. https://nx.dev/recipes/angular/module-federation-with-ssr
Depending on the OS and nx version I get this errors:
**Windows ("nx": "19.5.0" -> from above nx report):**
Error:
The loadShareSync functionwas unable to load @angular/common. The @angular/common could not be found in checkout.
Possible reasons for failure:
1. The @angular/common share was registered with the 'get' attribute, but loadShare was not used beforehand.
2. The @angular/common share was not registered with the 'lib' attribute.
**windows("nx": "18.0.8"):**
if(typeof factory !== "function") throw new Error("Shared module is not available for eager consumption: " + id);
^
Error: Shared module is not available for eager consumption: 5538
**mac("nx": 18.0.8):**
SyntaxError: Unexpected token '<'
at new Script (node:vm:99:7)
at createScript (node:vm:255:10)
at Object.runInThisContext (node:vm:303:10)
at <anonymous> (./webpack/runtime/readFile%20chunk%20loading:51:1)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
message: 'Loading script failed.\n' +
"(Unexpected token '<': http://localhost:4202/server/remoteEntry.js)",
name: 'ScriptExternalLoadError'
Package Manager Version
No response
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Current Behavior
This issue exhibits the same behavior described in #14428. However, the solutions provided there do not seem to work on either Windows or macOS so I decided to open new issue. I couldn't even follow steps from your SSR tutorial. https://nx.dev/recipes/angular/module-federation-with-ssr
Expected Behavior
The code from tutorial should work.
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: