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
When imported for a React Native project build on Node >=14, the following warning is displayed: warn Package swr has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in <path...>/node_modules/swr/package.json
This occurs as the SWR package.json file is not included in the exports field of package.json. This is a known quirk of using React Native on Node 14, and is under discussion by the community here.
An easy fix is to add package.json to the exports field of the same package.json file.
Expected Behavior
It would be handy if SWR just exported its own package.json file - PR to follow.
Additional Context
SWR version:1.0.0-beta.9
The text was updated successfully, but these errors were encountered:
Bug report
Description / Observed Behavior
When imported for a React Native project build on Node >=14, the following warning is displayed:
warn Package swr has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in <path...>/node_modules/swr/package.json
This occurs as the SWR package.json file is not included in the exports field of package.json. This is a known quirk of using React Native on Node 14, and is under discussion by the community here.
An easy fix is to add package.json to the exports field of the same package.json file.
Expected Behavior
It would be handy if SWR just exported its own package.json file - PR to follow.
Additional Context
SWR version:1.0.0-beta.9
The text was updated successfully, but these errors were encountered: