invertase / notifee

βš›οΈ A feature rich notifications library for React Native.
https://notifee.app
Apache License 2.0
1.88k stars 228 forks source link

Error: Notifee native module not found. #900

Closed EssamWisam closed 12 months ago

EssamWisam commented 1 year ago

Have spent quite some time trying to solve this error to no avail.

Error: Notifee native module not found.
at node_modules/expo/build/environment/react-native-logs.fx.js:27:4 in error
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:95:4 in reportException
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:141:19 in handleException
at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError
at node_modules/expo/build/errors/ExpoErrorManager.js:25:19 in errorHandler
at node_modules/expo/build/errors/ExpoErrorManager.js:30:24 in <anonymous>
at node_modules/@react-native/polyfills/error-guard.js:49:36 in ErrorUtils.reportFatalError
at node_modules/metro-runtime/src/polyfills/require.js:203:6 in guardedLoadModule
at http://pw-hnh.essamwisam.poll-ups-reactnative.exp.direct/index.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:null in global code

Here is my package.json:

{
  "name": "firebaseauth",
  "version": "1.0.6",
  "scripts": {
    "start": "expo start --dev-client",
    "android": "expo run:android",
    "ios": "expo run:ios",
    "web": "expo start --web"
  },
  "dependencies": {
    "@expo/ngrok": "^4.1.1",
    "@notifee/react-native": "^7.8.0",
    "@react-native-async-storage/async-storage": "~1.17.3",
    "@react-native-community/slider": "^4.3.1",
    "@react-navigation/drawer": "^6.4.4",
    "@react-navigation/native": "^6.0.11",
    "@react-navigation/native-stack": "^6.7.0",
    "@reduxjs/toolkit": "^1.8.4",
    "expo": "~46.0.21",
    "expo-linear-gradient": "~11.4.0",
    "expo-splash-screen": "~0.16.2",
    "expo-status-bar": "~1.4.0",
    "expo-updates": "~0.14.5",
    "moment": "^2.29.4",
    "react": "18.0.0",
    "react-dom": "18.0.0",
    "react-native": "0.69.9",
    "react-native-calendar-picker": "^7.1.2",
    "react-native-colored-scrollbar": "^1.0.0",
    "react-native-form-validator": "^0.5.1",
    "react-native-gesture-handler": "~2.5.0",
    "react-native-gifted-charts": "^1.2.41",
    "react-native-hide-with-keyboard": "^1.2.1",
    "react-native-inviewport": "^1.1.0",
    "react-native-progress": "^5.0.0",
    "react-native-raw-bottom-sheet": "^2.2.0",
    "react-native-reanimated": "~2.9.1",
    "react-native-root-toast": "^3.4.0",
    "react-native-safe-area-context": "4.3.1",
    "react-native-screens": "~3.15.0",
    "react-native-scroll-indicator": "^0.1.0",
    "react-native-scrollview-indicator": "^1.0.5",
    "react-native-semicircle-slider-color-picker": "^0.1.0",
    "react-native-svg": "12.3.0",
    "react-native-vector-icons": "^9.2.0",
    "react-native-web": "~0.18.7",
    "react-redux": "^8.0.2",
    "reanimated-color-picker": "^1.0.2",
    "redux-persist": "^6.0.0"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "react-native-svg-transformer": "^1.0.0"
  },
  "private": true
}

I have followed the steps in the documentation for installation. Results from expo install @notifee/react-native :

[1/4] πŸ”  Resolving packages...
β ‚ @notifee/react-native(node:40741) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
[4/4] πŸ”¨  Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ @notifee/react-native@7.8.0
info All dependencies
└─ @notifee/react-native@7.8.0
✨  Done in 3.07s.

Results from expo prebuild are:

(node:40844) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
βœ” Created native projects | /android, /ios already created | gitignore skipped
β€Ί Metro skipped: Project metro.config.js does not match prebuild template.
β€Ί Ensure the project uses @expo/metro-config.
  Learn more: https://docs.expo.dev/guides/customizing-metro
βœ” Updated package.json and added index.js entry point for iOS and Android
β€Ί Installing using Yarn
Β» android: userInterfaceStyle: Install expo-system-ui in your project to enable this feature.
βœ” Config synced

my eas.json also has

  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal",
      "ios": {
        "resourceClass": "m1-medium"
      },
      "android": {
        "image": "ubuntu-18.04-jdk-11-ndk-r19c"
      }
    },

What could I have done wrong?

github-actions[bot] commented 1 year ago

Hello πŸ‘‹, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

DSp4wN commented 5 months ago

still there