Skip to content

[BUG]: Package "@mj-studio/react-native-naver-map" does not contain a valid config plugin. #140

@jasonnguynn1

Description

@jasonnguynn1

Is there an existing issue for this?

  • I have searched the existing issues

Version of @mj-studio/react-native-naver-map

2.5.2

Version of react-native

0.79.4

What os are you seeing the problem on?

iOS

What device types are you seeing the problem on?

Simulator

What architecture types of react native are you seeing the problem on?

New Architecture(Fabric)

Version of device(android API, iOS OS version, etc...)

IOS 18.3

Expo App

  • I am using Expo

What happened?

I can not build with EAS.

plugins:  [
...,
[
        "@mj-studio/react-native-naver-map",
        {
          client_id: "MY CLIENT ID",
          android: {
            ACCESS_FINE_LOCATION: true,
            ACCESS_COARSE_LOCATION: true,
            ACCESS_BACKGROUND_LOCATION: true,
          },
          ios: {
            NSLocationAlwaysAndWhenInUseUsageDescription:
              "고객님의 위치와 앱 사용 데이터를 기반으로 최적의 대리운전 서비스를 제공하며, 맞춤형 추천과 알림을 드리기 위해 데이터를 사용합니다.",
            NSLocationWhenInUseUsageDescription:
              "고객님의 위치와 앱 사용 데이터를 기반으로 최적의 대리운전 서비스를 제공하며, 맞춤형 추천과 알림을 드리기 위해 데이터를 사용합니다.",
          },
        },
      ],
 ],
eas build --clear-cache -p ios --profile production --local
★ [email protected] is now available.
To upgrade, run npm install -g eas-cli.
Proceeding with outdated version.

Package "@mj-studio/react-native-naver-map" 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
    Error: build command failed.

Relevant a package.json.

{
  "name": "pick-mobile",
  "main": "expo-router/entry",
  "version": "1.0.0",
  "scripts": {
    "start": "expo start",
    "startAOS": "EXPO_APP_CONFIG=android npx expo start -c",
    "startIOS": "EXPO_APP_CONFIG=ios npx expo start -c",
    "reset-project": "node ./scripts/reset-project.js",
    "ios": "EXPO_APP_CONFIG=ios npx expo run:ios",
    "android": "EXPO_APP_CONFIG=android npx expo run:android",
    "web": "expo start --web",
    "test": "jest --watchAll",
    "lint": "expo lint",
    "eas-build-pre-install": "npm config set legacy-peer-deps true"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@expo/config-plugins": "~10.0.0",
    "@expo/plist": "^0.3.4",
    "@expo/prebuild-config": "~9.0.0",
    "@gorhom/bottom-sheet": "^5.0.6",
    "@kichiyaki/react-native-barcode-generator": "^0.6.7",
    "@mj-studio/react-native-naver-map": "2.5.2",
    "@react-native-async-storage/async-storage": "2.1.2",
    "@react-native-community/netinfo": "^11.4.1",
    "@react-native-firebase/app": "^21.0.0",
    "@react-native-firebase/messaging": "^21.0.0",
    "@react-native-seoul/kakao-login": "^5.4.1",
    "@react-native-seoul/naver-login": "^4.1.3",
    "@react-navigation/native": "^7.0.14",
    "@reduxjs/toolkit": "^2.2.6",
    "@tanstack/react-query": "^5.52.1",
    "axios": "^1.7.2",
    "expo": "^53.0.12",
    "expo-apple-authentication": "~7.2.4",
    "expo-auth-session": "~6.2.0",
    "expo-build-properties": "~0.14.6",
    "expo-checkbox": "~4.1.4",
    "expo-constants": "~17.1.6",
    "expo-contacts": "~14.2.5",
    "expo-dev-client": "~5.2.1",
    "expo-font": "~13.3.1",
    "expo-image": "~2.3.0",
    "expo-linear-gradient": "~14.1.5",
    "expo-linking": "~7.1.5",
    "expo-location": "~18.1.5",
    "expo-router": "~5.1.0",
    "expo-splash-screen": "~0.30.9",
    "expo-status-bar": "~2.2.3",
    "expo-system-ui": "~5.0.9",
    "expo-updates": "~0.28.15",
    "expo-web-browser": "~14.2.0",
    "firebase": "^11.0.1",
    "foreground-ss": "0.1.49",
    "lodash": "^4.17.21",
    "lottie-react-native": "^7.2.2",
    "metro": "^0.82.0",
    "metro-cache": "^0.82.4",
    "metro-config": "^0.82.0",
    "metro-resolver": "^0.82.0",
    "moment": "^2.30.1",
    "moment-timezone": "^0.5.48",
    "nativewind": "^4.1.23",
    "react": "19.0.0",
    "react-content-loader": "^7.0.2",
    "react-dom": "19.0.0",
    "react-native": "0.79.4",
    "react-native-action-sheet": "^2.2.0",
    "react-native-date-picker": "^5.0.4",
    "react-native-element-dropdown": "^2.12.1",
    "react-native-gesture-handler": "~2.24.0",
    "react-native-google-mobile-ads": "^14.2.5",
    "react-native-keyboard-aware-scroll-view": "^0.9.5",
    "react-native-reanimated": "~3.17.4",
    "react-native-reanimated-carousel": "^3.5.1",
    "react-native-safe-area-context": "^5.4.0",
    "react-native-screens": "~4.11.1",
    "react-native-select-contact": "^1.6.3",
    "react-native-shadow-2": "^7.1.1",
    "react-native-svg": "15.11.2",
    "react-native-web": "^0.20.0",
    "react-redux": "^9.1.2"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@types/jest": "^29.5.12",
    "@types/react": "~19.0.10",
    "@types/react-test-renderer": "^18.0.7",
    "jest": "^29.2.1",
    "jest-expo": "~53.0.7",
    "prettier-plugin-tailwindcss": "^0.5.14",
    "react-test-renderer": "18.2.0",
    "tailwindcss": "^3.4.17",
    "typescript": "~5.8.3"
  },
  "private": true
}

Relevant log output

❯ eas build --clear-cache -p ios --profile production --local
★ [email protected] is now available.
To upgrade, run npm install -g eas-cli.
Proceeding with outdated version.

Package "@mj-studio/react-native-naver-map" 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
    Error: build command failed.

Reproducible Sample Repository

https://github.com/Boomcolabs/pick-app/tree/expoSDK53/newArchitecture

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions