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
I am using this package to support bringing in react-native-gifted-chat, which has react-native as a peer dependency. Is there a way to turn off the warning that I am missing the react-native peer dependency? My hack solution right now is to use a local dependency with the name "react-native" and point it at a package with high enough version that the warning is ignored. I really hate this.
"react-native": "file:node_modules/react",
I originally tried aliasing react-native as
"react-native": "npm:react-native-web@^0.14.13"
in package.json however because react-native-web version is lower than react-native I was still getting warnings that the version was not high enough.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am using this package to support bringing in react-native-gifted-chat, which has
react-nativeas a peer dependency. Is there a way to turn off the warning that I am missing thereact-nativepeer dependency? My hack solution right now is to use a local dependency with the name "react-native" and point it at a package with high enough version that the warning is ignored. I really hate this.I originally tried aliasing
react-nativeasin
package.jsonhowever becausereact-native-webversion is lower thanreact-nativeI was still getting warnings that the version was not high enough.Beta Was this translation helpful? Give feedback.
All reactions