expo: Error: Permissions module not found. Are you sure that Expo modules are properly linked?

Summary

I updated all the expo dependencies (ink. react-native-unimodules at ver 0.14.1) in my bare react-native app. Since then, I’m having troubles when a module tries to fetch the permissions. " Error: Permissions module not found. Are you sure that Expo modules are properly linked?"

There is no documentation regarding the new module expo-modules-core (also installed). Did I miss something ?

Might have been caused by #12961 @tsapeta

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

bare

What platform(s) does this occur on?

Android, iOS

SDK Version (managed workflow only)

No response

Environment

System:
  OS: macOS 11.2.3
  Shell: 5.8 - /bin/zsh
Binaries:
  Node: 12.15.0 - /usr/local/bin/node
  Yarn: 1.22.5 - /usr/local/bin/yarn
  npm: 6.14.8 - /usr/local/bin/npm
  Watchman: 4.9.0 - /usr/local/bin/watchman
IDEs:
  Android Studio: 4.2 AI-202.7660.26.42.7351085
  Xcode: 12.5/12E262 - /usr/bin/xcodebuild
npmPackages:
  react: 16.13.1 => 16.13.1 
  react-native: 0.64.2 => 0.64.2 

Reproducible demo or steps to reproduce from a blank project

const {status} = await Notifications.requestPermissionsAsync();

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 4
  • Comments: 18 (4 by maintainers)

Most upvoted comments

Thanks @brentvatne bumped react-native-unimodules to 0.14.5 and now works. Thanks

can someone share a minimal reproducible example of this issue?

i believe that there may be a library with an incorrect dependency. we collapsed interfaces into a single package and removed expo-permissions from react-native-unimodules in this release.

you can work around it by installing whatever package is listed as missing, eg: expo install unimodules-permissions-interface and/or expo install expo-permissions. a reproducible example would be helpful for us to resolve the underlying issue, though

I have updated all expo related libs and now everything works. I am use bare react native

Got the same with the imagePicker in my project with unimodules. Tried different things like different versions of the package, unimodules, excluding the expo-permission but the permission interface cannot be found.

Made a test project @brentvatne which return the error on iOS and Android that there is no permission interface: https://github.com/wbroek/permissionTest

We are on version 0.13 of unimodules because of https://github.com/expo/expo/issues/13168 so now 0.13 and 0.14 are not working for us.