Skip to content

Cannot find module issues persist #4286

Description

@IrvingArmenta

Requirements: This library requires Mapbox Maps SDK v11 and React Native 0.79+ with New Architecture (Fabric/TurboModules).

For sponsors-only support and resources: https://github.com/rnmapbox/maps/wiki/SponsorsRepo
Become a sponsor for special support: https://github.com/sponsors/rnmapbox


Environment

  • Dev OS: Windows 11 (PowerShell)
  • @rnmapbox/maps version: 10.3.5
  • React Native version: Expo SDK 57 (React Native 0.73+)
  • Expo CLI version: 57.0.18
  • pnpm version: 11.23.0

Steps to reproduce

pnpx create-expo-app sample
cd sample

# Install rnmapbox/maps
pnpm expo install @rnmapbox/maps@latest

# Add plugin
# app.json:
# {
#   "expo": {
#     "plugins": ["@rnmapbox/maps"]
#   }
# }

pnpm expo prebuild --clean
pnpm expo run:android

Actual behavior

1. Expo cannot resolve the config plugin in app.json

In VS Code, hovering over "@rnmapbox/maps" inside "plugins" shows:
Cannot find module '@rnmapbox/maps'

2. Expo prebuild fails with module resolution errors

During the Expo config plugin phase, the build fails with:
Cannot find module '@rnmapbox/maps'

Expected Behavior

Expo’s config plugin should be discoverable in app.json, and Expo should load:
lib/module/Mapbox.js

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions