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

Error: Unsatisfied version 0 from platform of shared singleton module @apollo/client/core (required ^3.8.9) #11475

Closed
sevikk opened this issue Jan 10, 2024 · 3 comments
Labels
🏓 awaiting-contributor-response requires input from a contributor

Comments

@sevikk
Copy link

sevikk commented Jan 10, 2024

Issue Description

nx-workspace

main.ts:6

Error: Unsatisfied version 0 from platform of shared singleton module @apollo/client/core (required ^3.8.9)

shared module @apollo/client/core -> /path/app/node_modules/@apollo/client/core/index.js - Warning: No version specified and unable to automatically determine one. No version in description file (usually package.json). Add version to description file /path/node_modules/@apollo/client/core/package.json, or manually specify version in shared config.

shared module @apollo/client/link/batch -> /path/app/node_modules/@apollo/client/link/batch/index.js - Warning: No version specified and unable to automatically determine one. No version in description file (usually package.json). Add version to description file /path/app/node_modules/@apollo/client/link/batch/package.json, or manually specify version in shared config.

Missing version property exposed from package.

Webpack build with module federation is failied.

Link to Reproduction

link

Reproduction Steps

No response

image
@phryneas
Copy link
Member

That does look like a bug in nx-workspace to be honest - they should always check the top-level package.json of a library, not nested entry points - so they should check node_modules/@apollo/client/package.json, not node_modules/@apollo/client/link/batch/package.json.

Those nested package.json files are used by many packages, and they usually don't contain any version information.

Did you open an issue over there?

@bignimbus bignimbus added the 🏓 awaiting-contributor-response requires input from a contributor label Jan 10, 2024
@sevikk sevikk closed this as completed Jan 16, 2024
@MaxSassen
Copy link

image

im having the same issue, @sevikk saw you completed this 3 weeks ago. How did you resolved this issue?

Copy link
Contributor

github-actions bot commented Mar 9, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
For general questions, we recommend using StackOverflow or our discord server.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🏓 awaiting-contributor-response requires input from a contributor
Projects
None yet
Development

No branches or pull requests

4 participants