Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot launch MFE host/remotes... 3rd party libs scraped out of package-lock.json errantly #28889

Open
1 of 4 tasks
nhhockeyplayer opened this issue Nov 11, 2024 · 1 comment
Assignees
Labels
scope: module federation Issues related to module federation support type: bug

Comments

@nhhockeyplayer
Copy link

nhhockeyplayer commented Nov 11, 2024

Current Behavior

SUBJECT: Cannot launch MFE host/remotes... 3rd party libs scraped out of package-lock.json errantly

I cannot launch my app

MFE app is configured properly

though the lock files in package-lock.json generate old versions lurking within it for the 4rd party lib in question

NX drills into the lock file and launches based on those old errant obsolete versions

hence halting launch

Expected Behavior

MFE app should launch without incident

GitHub Repo

https://github.com/nhhockeyplayer/meanstacknh

Steps to Reproduce

nx run ui-host:serve-all --parallel

Nx Report

nx report

 NX   Report complete - copy this into the issue template

Node           : 22.9.0
OS             : darwin-x64
Native Target  : x86_64-macos
npm            : 10.9.0

nx (global)        : 20.0.0
nx                 : 20.0.12
@nx/js             : 20.0.12
@nx/jest           : 20.0.12
@nx/eslint         : 20.0.12
@nx/workspace      : 20.0.12
@nx/angular        : 20.0.12
@nx/cypress        : 20.0.12
@nx/devkit         : 20.0.12
@nx/esbuild        : 20.0.12
@nx/eslint-plugin  : 20.0.12
@nx/express        : 20.0.12
@nx/nest           : 20.0.12
@nx/node           : 20.0.12
@nx/web            : 20.0.12
@nx/webpack        : 20.0.12
nx-cloud           : 19.1.0
typescript         : 5.5.4
---------------------------------------
Registered Plugins:
@nx/cypress/plugin
@nx/eslint/plugin
---------------------------------------
Community plugins:
@compodoc/compodoc                    : 1.1.26
@fortawesome/angular-fontawesome      : 0.15.0
@ionic/angular                        : 6.7.5
@jsverse/transloco                    : 7.5.0
@ngrx/component                       : 18.0.2
@ngrx/component-store                 : 18.0.2
@ngrx/effects                         : 18.0.2
@ngrx/entity                          : 18.0.2
@ngrx/operators                       : 18.0.2
@ngrx/router-store                    : 18.0.2
@ngrx/schematics                      : 18.0.2
@ngrx/store                           : 18.0.2
@ngrx/store-devtools                  : 18.0.2
angular-builder-custom-terser-options : 1.0.1
apollo-angular                        : 7.2.1

Failure Logs

Error: [ Federation Runtime ]: Version 0 from micro front end HOST ui-host of shared singleton module @apollo/client/core does not satisfy the requirement of micro front end HOST ui-host which needs ^3.11.9) at error (http://localhost:4200/polyfills.js:2438:9) at defaultResolver (http://localhost:4200/polyfills.js:3216:15) at args.resolver (http://localhost:4200/polyfills.js:15229:20) at Object.getRegisteredShare (http://localhost:4200/polyfills.js:3245:28) at http://localhost:4200/polyfills.js:1413:38 at Generator.next (<anonymous>) at asyncGeneratorStep (http://localhost:4200/polyfills.js:15261:17) at _next (http://localhost:4200/polyfills.js:15275:9) at _ZoneDelegate.invoke (http://localhost:4200/polyfills.js:9714:158) at ZoneImpl.run (http://localhost:4200/polyfills.js:9485:35) {stack: "Error: [ Federation Runtime ]: Version 0 from micr….run (http://localhost:4200/polyfills.js:9485:35)", message: "[ Federation Runtime ]: Version 0 from micro front…micro front end HOST ui-host which needs ^3.11.9)"}

Package Manager Version

npm --version 10.9.0

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

please ask for access to repo

@nhhockeyplayer
Copy link
Author

workaround

delete lock files

re-launch

@FrozenPandaz FrozenPandaz added the scope: module federation Issues related to module federation support label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: module federation Issues related to module federation support type: bug
Projects
None yet
Development

No branches or pull requests

3 participants