ios icon indicating copy to clipboard operation
ios copied to clipboard

Unable to resolve module `@react-native-community/push-notification-ios` from `src/App.js`

Open rmathias86 opened this issue 5 years ago • 11 comments

Hey guys,

I've been trying to use this lib but I'm getting this simple error

Unable to resolve module @react-native-community/push-notification-iosfromsrc/App.js: @react-native-community/push-notification-ios could not be found within the project or in these directories: node_modules/@react-native-community

App.js import import PushNotificationIOS from "@react-native-community/push-notification-ios";

I've followed the all installation instructions in the readme, but npm i instead of yarn add. In fact, node_modules contains @react-native-community/push-notification-ios.

Has any one faced the problem before? All other @react-native-community libs works fine for me.

"react": "^16.13.1", "react-native": "0.62.2", "@react-native-community/push-notification-ios": "^1.8.0",

rmathias86 avatar Dec 03 '20 20:12 rmathias86

Have you had any luck solving your problem? I encountered the same error today.

Axenu avatar Dec 05 '20 16:12 Axenu

Have you had any luck solving your problem? I encountered the same error today.

No, I havent solved yet.

rmathias86 avatar Dec 06 '20 14:12 rmathias86

Try npm install @react-native-community/push-notification-ios, because its working fine with me

jdvvaghelaoffice avatar Dec 10 '20 11:12 jdvvaghelaoffice

Try npm install @react-native-community/push-notification-ios, because its working fine with me

Thanks @JDJBSPL, I've followed the installation instructions step-by-step, no luck

I don't think the lib itself is causing the problem, but a configuration in my project... no idea what!

Found this, https://github.com/zo0r/react-native-push-notification/issues/1176 but didnt help.

rmathias86 avatar Dec 10 '20 15:12 rmathias86

I encountered the same error - by removing /ios/* from resolver blacklist, it works.

threefeetcat avatar Dec 30 '20 01:12 threefeetcat

npm install @react-native-community/push-notification-ios --legacy-peer-deps worked for me

lucas0205 avatar Apr 08 '21 10:04 lucas0205

npm install @react-native-community/push-notification-ios --legacy-peer-deps

This worked for me thank you

taine-zuse avatar May 26 '22 06:05 taine-zuse

npm install @react-native-community/push-notification-ios --legacy-peer-deps worked for me

It works, thanks!

ilialezhnev avatar Jan 17 '23 08:01 ilialezhnev

It works for me, thanks!

naveedHashmi avatar Mar 21 '23 15:03 naveedHashmi

not worked for me

npm install @react-native-community/push-notification-ios --legacy-peer-deps worked for me

dharni1181 avatar Jun 13 '24 12:06 dharni1181