[Support Request]: Status of Expo config plugin release (prebuild fails on 0.19.0)

Đang mở
#711 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 5 ngày

@jokerttu đang làm issue này rồi.

Từ ngày 8/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Summary

I'm trying to set up this package in an Expo app by following EXPO.md on main, but npx expo prebuild fails with the latest npm release (0.19.0) because that version doesn't include the config plugin.

From what I can tell, the plugin was added in #709 after v0.19.0 was published, and is waiting to ship in release PR #710 (0.19.1). npm view still shows 0.19.0 as latest, and the installed package has no app.plugin.js or plugin/ directory.

Questions
  1. Is there an expected timeline for publishing 0.19.1, or anything blocking #710?
  2. Until then, is there a supported way for Expo apps to use the plugin, or should we wait for the release?
  3. Could EXPO.md state the minimum package version that includes the plugin? It's linked from the README on the default branch, so anyone following it today will hit this error.
Environment
@googlemaps/react-native-navigation-sdk 0.19.0
Expo SDK 58.0.23
React Native 0.88.1
React 19.3.0
Node 22.20.0
OS Windows 11
Platform tested Android (npx expo prebuild -p android)
Steps to reproduce
  1. Install the package with npx expo install @googlemaps/react-native-navigation-sdk expo-build-properties.

  2. Add the plugin to app.json, as described in EXPO.md:

    "plugins": [
      "@googlemaps/react-native-navigation-sdk",
      ["expo-build-properties", { "android": { "kotlinVersion": "2.3.21" } }]
    ]
    
  3. Run npx expo prebuild -p android.

Actual result
PluginError: Transform failed with 1 error:
node_modules/react-native/index.js:27:7: ERROR: Unexpected "typeof"

No "app.plugin.{js,cjs,mjs,ts,cts,mts}" file was found in "@googlemaps/react-native-navigation-sdk", so the package's main entry was loaded instead. Config plugins are typically exported from an "app.plugin.js" file in the package root.

The No "app.plugin..." file was found line looks like the actual problem. With no plugin file, Expo falls back to the package's main entry, which pulls in react-native. The Unexpected "typeof" part appears to be a side effect: my app.config.ts imports tsx/cjs, so esbuild tries to transform React Native's Flow source. I don't think it indicates a separate bug in this package.

Expected result

npx expo prebuild finds the config plugin and generates the native projects, as EXPO.md describes.

Thanks for adding Expo support, and to @kota113 for the original work in #577.

Ngôn ngữ chính
TypeScript
Star
226
Fork
39
Merge trung bình
1 ngày 20 giờ
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của googlemaps/react-native-navigation-sdk

Tất cả issue của googlemaps/react-native-navigation-sdk

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.