Skip to content

Error message indicates that the "exports" field in the package.json #4960

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

Closed
hariskhalid366 opened this issue May 1, 2025 · 3 comments · Fixed by #4889, #4888 or #4887
Closed

Error message indicates that the "exports" field in the package.json #4960

hariskhalid366 opened this issue May 1, 2025 · 3 comments · Fixed by #4889, #4888 or #4887
Assignees
Labels
bug Something isn't working React-Native Indicates an issue specific to the React Native environment

Comments

@hariskhalid366
Copy link

I don't know why im getting this error as i have upgraded the @reduxjs/toolkit to latest version.

using @reduxjs/toolkit in [email protected]
@reduxjs/toolkit:2.7.0

The package ..node_modules/@reduxjs/toolkit/query contains an invalid package.json configuration. Consider raising this issue with the package maintainer(s).
Reason: The target for "." defined in "exports" is "./../dist/query/cjs/index.js", however this value is an invalid subpath or subpath pattern because it includes "..". Falling back to file-based resolution.

@aryaemami59
Copy link
Member

Related to #4524, there is a PR open that should fix it, I just haven't gotten around to finishing it.

@aryaemami59 aryaemami59 self-assigned this May 1, 2025
@najmulansari
Copy link

I am also getting the same error. I would greatly appreciate an early resolution. Thank you.

@aryaemami59
Copy link
Member

aryaemami59 commented May 4, 2025

Update

We're currently working on it in this PR, feedback would be appreciated.

Additional Notes

This is a duplicate of #4524.

@aryaemami59 aryaemami59 added bug Something isn't working React-Native Indicates an issue specific to the React Native environment labels May 4, 2025
@aryaemami59 aryaemami59 pinned this issue May 4, 2025
@aryaemami59 aryaemami59 unpinned this issue May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working React-Native Indicates an issue specific to the React Native environment
Projects
None yet
3 participants