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

Inconsistent peerDependency for babel-plugin-lingui-macro #2114

Closed
ptmkenny opened this issue Dec 7, 2024 · 0 comments · Fixed by #2115
Closed

Inconsistent peerDependency for babel-plugin-lingui-macro #2114

ptmkenny opened this issue Dec 7, 2024 · 0 comments · Fixed by #2115

Comments

@ptmkenny
Copy link

ptmkenny commented Dec 7, 2024

Describe the bug
lingui 5.1.0

It seems the versions of babel-plugin-lingui-macro got out of sync.

@lingui/macro package has a peerDependency:

"@lingui/babel-plugin-lingui-macro": "4.11.2",

While @lingui/react package has a different peerDependency:

"@lingui/babel-plugin-lingui-macro": "5.0.0",

This is causing NPM to complain:

npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @lingui/core@5.1.0
npm warn Found: @lingui/babel-plugin-lingui-macro@5.1.0
npm warn node_modules/@lingui/babel-plugin-lingui-macro
npm warn   @lingui/babel-plugin-lingui-macro@"5.1.0" from @lingui/cli@5.1.0
npm warn   node_modules/@lingui/cli
npm warn     dev @lingui/cli@"^5" from the root project
npm warn     1 more (@lingui/vite-plugin)
npm warn
npm warn Could not resolve dependency:
npm warn peerOptional @lingui/babel-plugin-lingui-macro@"4.11.2" from @lingui/macro@5.1.0
npm warn node_modules/@lingui/macro
npm warn   @lingui/macro@"^5" from the root project
npm warn ERESOLVE overriding peer dependency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant