Skip to content

Conversation

janicduplessis
Copy link
Collaborator

@janicduplessis janicduplessis commented Aug 29, 2025

Summary

Some users have been getting a INVALID_PLUGIN_IMPORT error when building on expo, the error also happens when using the expo vscode extension.

Fixes #1915

This also updates the version of react-native-builder-bob as I wanted to see if the latest version also creates those package.json files, but it does. I kept the version upgrade, but can revert if you prefer as it doesn't fix the issue.

Motivation

react-native-builder-bob generates package.json files under the lib folder, which seems to confuse how expo resolves the config plugin. I went looking at other libraries that have an expo plugin and build using bob and found this https://github.com/zoontek/react-native-bootsplash/blob/master/package.json#L50.

Testing

  • I tested this manually
  • I added automated tests

Documentation

Select one:

  • I have added relevant documentation for my changes.
  • This PR does not result in any developer-facing changes.

@@ -130,12 +130,7 @@
"configFile": true
}
],
[
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The config validation is stricter now and the configFile option doesn't exist for typescript.

@janicduplessis janicduplessis merged commit 7894ae3 into stripe:master Sep 2, 2025
22 checks passed
@janicduplessis janicduplessis deleted the @janic/config-plugin-fix branch September 2, 2025 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

INVALID_PLUGIN_IMPORT on EAS build
2 participants