invertase / notifee

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

Compatibility issues with Expo version 0.10.16 #950

Closed 80982proton closed 8 months ago

80982proton commented 10 months ago

Working with Expo Version 0.10.16 i get this Error, does anyone have a workaround for this?

npm run ios

> app@1.0.0 ios
> expo start --ios

Starting project at .../app
PluginError: Package "@notifee/react-native" does not contain a valid config plugin.
Learn more: https://docs.expo.dev/guides/config-plugins/#creating-a-plugin

Cannot use import statement outside a module
.../app/node_modules/react-native/index.js:14
import typeof AccessibilityInfo from './Libraries/Components/AccessibilityInfo/AccessibilityInfo';
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1274:20)
    at Module._compile (node:internal/modules/cjs/loader:1320:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
    at Module.load (node:internal/modules/cjs/loader:1197:32)
    at Module._load (node:internal/modules/cjs/loader:1013:12)
    at Module.require (node:internal/modules/cjs/loader:1225:19)
    at require (node:internal/modules/helpers:177:18)
    at Object.<anonymous> (.../app/node_modules/@notifee/react-native/dist/NotifeeApiModule.js:9:24)
    at Module._compile (node:internal/modules/cjs/loader:1356:14)
ghost commented 10 months ago

any updates on this?

80982proton commented 10 months ago

Use @notifee/react-native@7.7.1 ā€“ for some reason plugin config has been removed!? @helenaford

https://github.com/invertase/notifee/tree/%40notifee/react-native%407.7.1/packages/react-native/plugin

github-actions[bot] commented 9 months 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.

sregg commented 4 months ago

What happened to the expo plugin past 7.7.1?

sregg commented 4 months ago

Looks like the expo plugin is not needed anymore. https://github.com/invertase/notifee/issues/799