Skip to content

TypeError: _ExpoSecureStore.default.getValueWithKeyAsync is not a function #3147

@Pratap22

Description

@Pratap22

Build/Submit details page URL

https://expo.dev/accounts/wesweat/projects/wesweat/builds/9f125fa5-185b-4cc3-b1ea-044007dbd232

Summary

So I am trying to make a preview and production build using eas.

eas build --profile preview

eas build

Then I endup with an issue mentioning

Starting Metro Bundler
iOS node_modules/expo-router/entry.js ▓▓▓▓▓▓▓▓▓▓░░░░░░ 64.5% (704/891)
iOS Bundled 4550ms node_modules/expo-router/entry.js (1271 modules)
Exporting server
| Dynamic import at line 109: require(s). This module may not work as intended when deployed to a runtime.
λ Bundled 2231ms node_modules/expo-router/build/static/getServerManifest.js (949 modules)
λ  WARN  [expo-notifications] Listening to push token changes is not yet fully supported on web. Adding a listener will have no effect.
λ  LOG  supabaseUrl https://wnbrcnrgowabkpnriauo.supabase.co/
λ  LOG  supabaseAnonKey eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InduYnJjbnJnb3dhYmtwbnJpYXVvIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTM4NDkzMjUsImV4cCI6MjA2OTQyNTMyNX0.l6n2Lo18uMtxOm1Igc12Llqs96WdZQiM4Wz2x7Nimtc
/Users/expo/workingdir/build/node_modules/@expo/cli/build/src/utils/errors.js:130
    throw error;
    ^
TypeError: _ExpoSecureStore.default.getValueWithKeyAsync is not a function
    at Object.getItemAsync (/Users/expo/workingdir/build/node_modules/expo-secure-store/build/SecureStore.js:88:34)
    at Object.getItem (/Users/expo/workingdir/build/lib/supabase.ts:12:41)
    at getItemAsync (/Users/expo/workingdir/build/node_modules/@supabase/auth-js/dist/main/lib/helpers.js:136:33)
    at SupabaseAuthClient.__loadSession (/Users/expo/workingdir/build/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js:1000:66)
    at SupabaseAuthClient._useSession (/Users/expo/workingdir/build/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js:981:39)
    at SupabaseAuthClient._emitInitialSession (/Users/expo/workingdir/build/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js:1435:27)
    at fn (/Users/expo/workingdir/build/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js:1429:22)
    at fn (/Users/expo/workingdir/build/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js:943:36)
    at SupabaseAuthClient.lock (/Users/expo/workingdir/build/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js:30:18)
    at SupabaseAuthClient._acquireLock (/Users/expo/workingdir/build/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js:939:31)
Node.js v20.19.2
npx expo export:embed --eager --platform ios --dev false exited with non-zero code: 7

Managed or bare?

Managed

Environment

npx expo-env-info

 expo-env-info 1.3.4 environment info:
    System:
      OS: macOS 15.6
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 22.13.1 - ~/.nvm/versions/node/v22.13.1/bin/node
      Yarn: 1.22.21 - ~/.nvm/versions/node/v20.10.0/bin/yarn
      npm: 10.9.2 - ~/.nvm/versions/node/v22.13.1/bin/npm
      Watchman: 2025.02.17.00 - /opt/homebrew/bin/watchman
    Managers:
      CocoaPods: 1.16.2 - /opt/homebrew/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 24.5, iOS 18.5, macOS 15.5, tvOS 18.5, visionOS 2.5, watchOS 11.5
      Android SDK:
        API Levels: 29, 30, 31, 32, 33, 34
        Build Tools: 30.0.3, 33.0.0, 33.0.1, 34.0.0
        System Images: android-34 | Google APIs ARM 64 v8a, android-UpsideDownCakePrivacySandbox | Google Play ARM 64 v8a
    IDEs:
      Android Studio: 2023.1 AI-231.9392.1.2311.11076708
      Xcode: 16.4/16F6 - /usr/bin/xcodebuild
    npmPackages:
      expo: ~53.0.20 => 53.0.20 
      expo-router: ~5.1.4 => 5.1.4 
      react: 19.0.0 => 19.0.0 
      react-dom: 19.0.0 => 19.0.0 
      react-native: 0.79.5 => 0.79.5 
      react-native-web: ~0.20.0 => 0.20.0 
    Expo Workflow: managed

npx expo-doctor

env: load .env
env: export EXPO_PUBLIC_SUPABASE_URL EXPO_PUBLIC_SUPABASE_ANON_KEY
15/15 checks passed. No issues detected!

Error output

Starting Metro Bundler
iOS node_modules/expo-router/entry.js ▓▓▓▓▓▓▓▓▓▓░░░░░░ 66.9% (678/848)
iOS Bundled 4560ms node_modules/expo-router/entry.js (1271 modules)
Exporting server
| Dynamic import at line 109: require(s). This module may not work as intended when deployed to a runtime.
λ Bundled 2237ms node_modules/expo-router/build/static/getServerManifest.js (951 modules)
λ WARN [expo-notifications] Listening to push token changes is not yet fully supported on web. Adding a listener will have no effect.
λ LOG supabaseUrl https://wnbrcnrgowabkpnriauo.supabase.co/
λ LOG supabaseAnonKey eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InduYnJjbnJnb3dhYmtwbnJpYXVvIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTM4NDkzMjUsImV4cCI6MjA2OTQyNTMyNX0.l6n2Lo18uMtxOm1Igc12Llqs96WdZQiM4Wz2x7Nimtc
/Users/expo/workingdir/build/node_modules/@expo/cli/build/src/utils/errors.js:130
throw error;
^
TypeError: _ExpoSecureStore.default.getValueWithKeyAsync is not a function
at Object.getItemAsync (/Users/expo/workingdir/build/node_modules/expo-secure-store/build/SecureStore.js:88:34)
at Object.getItem (/Users/expo/workingdir/build/lib/supabase.ts:12:41)
at getItemAsync (/Users/expo/workingdir/build/node_modules/@supabase/auth-js/dist/main/lib/helpers.js:136:33)
at SupabaseAuthClient.__loadSession (/Users/expo/workingdir/build/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js:1000:66)
at SupabaseAuthClient._useSession (/Users/expo/workingdir/build/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js:981:39)
at SupabaseAuthClient._emitInitialSession (/Users/expo/workingdir/build/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js:1435:27)
at fn (/Users/expo/workingdir/build/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js:1429:22)
at fn (/Users/expo/workingdir/build/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js:943:36)
at SupabaseAuthClient.lock (/Users/expo/workingdir/build/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js:30:18)
at SupabaseAuthClient._acquireLock (/Users/expo/workingdir/build/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js:939:31)
Node.js v20.19.2
npx expo export:embed --eager --platform ios --dev false exited with non-zero code: 7

Reproducible demo or steps to reproduce from a blank project

"dependencies": {
    "@expo/vector-icons": "^14.1.0",
    "@react-navigation/bottom-tabs": "^7.3.10",
    "@react-navigation/elements": "^2.3.8",
    "@react-navigation/native": "^7.1.6",
    "@supabase/supabase-js": "^2.45.4",
    "base64-arraybuffer": "^1.0.2",
    "expo": "~53.0.20",
    "expo-apple-authentication": "^7.2.4",
    "expo-blur": "~14.1.5",
    "expo-camera": "~16.1.11",
    "expo-clipboard": "^7.1.5",
    "expo-constants": "~17.1.7",
    "expo-dev-client": "~5.2.4",
    "expo-device": "~7.1.4",
    "expo-file-system": "^18.1.11",
    "expo-font": "~13.3.2",
    "expo-haptics": "~14.1.4",
    "expo-image": "~2.4.0",
    "expo-image-picker": "^16.1.4",
    "expo-media-library": "^17.1.7",
    "expo-notifications": "~0.31.4",
    "expo-router": "~5.1.4",
    "expo-secure-store": "^14.2.3",
    "expo-splash-screen": "~0.30.10",
    "expo-status-bar": "~2.2.3",
    "expo-symbols": "~0.4.5",
    "expo-system-ui": "~5.0.10",
    "expo-web-browser": "~14.2.0",
    "react": "19.0.0",
    "react-dom": "19.0.0",
    "react-native": "0.79.5",
    "react-native-gesture-handler": "~2.24.0",
    "react-native-reanimated": "~3.17.4",
    "react-native-safe-area-context": "5.4.0",
    "react-native-screens": "~4.11.1",
    "react-native-web": "~0.20.0",
    "react-native-webview": "13.13.5",
    "supabase": "^2.33.5"
  },
  "devDependencies": {
    "@babel/core": "^7.25.2",
    "@types/react": "~19.0.10",
    "eslint": "^9.25.0",
    "eslint-config-expo": "~9.2.0",
    "typescript": "~5.8.3"
  },
eas --version
eas-cli/16.17.4 darwin-arm64 node-v22.13.1

Run eas

eas build -> Select iOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reviewIssue is ready to be reviewed by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions