Skip to content

Clerk Expo unable to resolve module @clerk/shared/object from @clerk/clerk-react/dist/index.js #4468

@dardeejay

Description

@dardeejay

Preliminary Checks

Reproduction

https://github.com/dardeejay/dormhunt-new

Publishable key

pk_test_ZWFnZXItaHllbmEtNi5jbGVyay5hY2NvdW50cy5kZXYk

Description

Steps to reproduce:

  1. Fresh install of Expo 51
  2. Follow clerk expo quickstart

Expected behavior:

Should work normally?

Actual behavior:

Throws the error

Error: undefined Unable to resolve module @clerk/shared/object from /Users/dardeejay/Developer/dormhunt-new/node_modules/@clerk/clerk-react/dist/index.js: @clerk/shared/object could not be found within the project or in these directories:
node_modules/@clerk/clerk-react/node_modules
node_modules
94 |
95 | // src/components/uiComponents.tsx

96 | var import_object = require("@clerk/shared/object");
| ^
97 | var import_react10 = require("@clerk/shared/react");
98 | var import_utils3 = require("@clerk/shared/utils");
99 | var import_react11 = __toESM(require("react"));]

Environment

System:
    OS: macOS 15.1
    CPU: (8) arm64 Apple M1
    Memory: 108.11 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.18.0 - ~/.nvm/versions/node/v20.18.0/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v20.18.0/bin/yarn
    npm: 10.8.2 - ~/.nvm/versions/node/v20.18.0/bin/npm
    pnpm: 9.12.1 - ~/.nvm/versions/node/v20.18.0/bin/pnpm
    Watchman: 2024.10.28.00 - /opt/homebrew/bin/watchman
  Browsers:
    Safari: 18.1
  npmPackages:
    @babel/core: ^7.20.0 => 7.26.0 
    @clerk/clerk-expo: ^2.2.33 => 2.2.33 
    @expo/metro-runtime: ~3.2.3 => 3.2.3 
    @expo/vector-icons: ^14.0.2 => 14.0.4 
    @react-native-async-storage/async-storage: ^2.0.0 => 2.0.0 
    @react-navigation/native: ^6.0.2 => 6.1.18 
    @types/jest: ^29.5.12 => 29.5.14 
    @types/react: ~18.2.45 => 18.2.79 
    @types/react-test-renderer: ^18.0.7 => 18.3.0 
    expo: ~51.0.28 => 51.0.38 
    expo-constants: ~16.0.2 => 16.0.2 
    expo-font: ~12.0.9 => 12.0.10 
    expo-image-picker: ~15.0.7 => 15.0.7 
    expo-linking: ~6.3.1 => 6.3.1 
    expo-router: ~3.5.23 => 3.5.23 
    expo-splash-screen: ~0.27.5 => 0.27.6 
    expo-status-bar: ~1.12.1 => 1.12.1 
    expo-system-ui: ~3.0.7 => 3.0.7 
    expo-web-browser: ~13.0.3 => 13.0.3 
    jest: ^29.2.1 => 29.7.0 
    jest-expo: ~51.0.3 => 51.0.4 
    react: 18.2.0 => 18.2.0 
    react-dom: 18.2.0 => 18.2.0 
    react-native: 0.74.5 => 0.74.5 
    react-native-gesture-handler: ~2.16.1 => 2.16.2 
    react-native-reanimated: ~3.10.1 => 3.10.1 
    react-native-safe-area-context: 4.10.5 => 4.10.5 
    react-native-screens: 3.31.1 => 3.31.1 
    react-native-size-matters: ^0.4.2 => 0.4.2 
    react-native-toast-message: ^2.2.1 => 2.2.1 
    react-native-web: ~0.19.10 => 0.19.13 
    react-test-renderer: 18.2.0 => 18.2.0 
    typescript: ~5.3.3 => 5.3.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions