Skip to content

🔥[🐛] expo plugins Unexpected token 'typeof' (INVALID_PLUGIN_IMPORT) #8976

@julian-dueck

Description

@julian-dueck

Issue

I use @react-native-firebase/app and @react-native-firebase/messaging, both v24 (issue happened in v23 too). I use expo, and have those packages added to the app.json plugins section. Since expo sdk-55, i get the following intellisense warning on both of the plugins import, likely from the vscode expo tools extension (maybe @byCedric can help)

Package "@react-native-firebase/messaging" does not contain a valid config plugin.
Learn more: https://docs.expo.dev/guides/config-plugins/#creating-a-plugin

Unexpected token 'typeof'

changing the plugin in app.json to @react-native-firebase/app/app.plugin.js fixes the warning (same for messaging)

The plugins seem to be working tho


Project Files

Javascript

Click To Expand

package.json:

    "expo": "~55.0.15",
    "@react-native-firebase/app": "24.0.0",
    "@react-native-firebase/messaging": "24.0.0",
    "react-native": "0.83.5",

firebase.json for react-native-firebase v6:

# N/A

iOS

Click To Expand

ios/Podfile:

  • I'm not using Pods
  • I'm using expo prebuild
  • I'm using Pods and my Podfile looks like:
# N/A

AppDelegate.m:

// N/A


Android

Click To Expand

Have you converted to AndroidX?

  • I'm using expo prebuild
  • my application is an AndroidX application?
  • I am using android/gradle.settings jetifier=true for Android compatibility?
  • I am using the NPM package jetifier for react-native compatibility?

android/build.gradle:

// N/A

android/app/build.gradle:

// N/A

android/settings.gradle:

// N/A

MainApplication.java:

// N/A

AndroidManifest.xml:

<!-- N/A -->


Environment

Click To Expand

react-native info output:

  expo-env-info 2.0.12 environment info:
    System:
      OS: Linux 6.19 Arch Linux
      Shell: 5.9 - /usr/bin/zsh
    Binaries:
      Node: 24.14.1 - ~/.nvm/versions/node/v24.14.1/bin/node
      npm: 11.11.0 - ~/.nvm/versions/node/v24.14.1/bin/npm
    SDKs:
      Android SDK:
        API Levels: 34, 35, 36
        Build Tools: 35.0.0, 36.0.0, 36.1.0, 36.1.0
        System Images: android-36 | Google Play Intel x86_64 Atom, android-36 | Pre-Release 16 KB Page Size Google Play Intel x86_64 Atom
    npmPackages:
      babel-preset-expo: ~55.0.17 => 55.0.17
      expo: ~55.0.15 => 55.0.15
      expo-router: ~55.0.12 => 55.0.12
      expo-updates: ~55.0.20 => 55.0.20
      react: 19.2.0 => 19.2.0
      react-dom: 19.2.0 => 19.2.0
      react-native: 0.83.5 => 0.83.4
    npmGlobalPackages:
      eas-cli: 18.5.0
    Expo Workflow: bare
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • react-native-firebase version you're using that has this issue:
    • 24.0.0
  • Firebase module(s) you're using that has the issue:
    • app and messaging, but likely all of them have this issue
  • Are you using TypeScript?
    • 5.9.3


Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions