Library Version
@use-voltra/ios-client@2.0.0-rc.2 / @use-voltra/android-client@2.0.0-rc.2
React Native Version
0.85.3
React Version
19.2.3
Expo Version
56.0.5
Minimal Reproduction
No dedicated repo needed, reproducible with a fresh Expo project:
Steps:
-
Create a new Expo project:
npx create-expo-app my-app
cd my-app
-
Install Voltra v2 RC:
npm install @use-voltra/ios-client@2.0.0-rc.2 @use-voltra/android-client@2.0.0-rc.2
-
Add the plugins to app.json:
{
"expo": {
"plugins": [
["@use-voltra/ios-client", { "widgets": [] }],
["@use-voltra/android-client", { "widgets": [] }]
]
}
}
-
Run prebuild:
npx expo prebuild --clean
Result:
No "app.plugin.{js,cjs,mjs,ts,cts,mts}" file was found in "@use-voltra/ios-client",
loaded the package's main entry instead.
PluginError: Cannot find module '../native/VoltraRNNativeComponent'
Require stack:
- node_modules/@use-voltra/ios-client/build/commonjs/components/VoltraView.js
- node_modules/@use-voltra/ios-client/build/commonjs/components/VoltraLiveActivityPreview.js
- node_modules/@use-voltra/ios-client/build/commonjs/index.js
...
Root Cause
Expo's plugin resolver uses resolveFrom (filesystem-based), which does not consult package.json exports map. Since no physical app.plugin.js exists at the package root of either -client package, the fallback to main entry triggers the crash.
Additional Information (Optional)
No response
Library Version
@use-voltra/ios-client@2.0.0-rc.2 / @use-voltra/android-client@2.0.0-rc.2
React Native Version
0.85.3
React Version
19.2.3
Expo Version
56.0.5
Minimal Reproduction
No dedicated repo needed, reproducible with a fresh Expo project:
Steps:
Create a new Expo project:
npx create-expo-app my-app cd my-appInstall Voltra v2 RC:
Add the plugins to app.json:
{ "expo": { "plugins": [ ["@use-voltra/ios-client", { "widgets": [] }], ["@use-voltra/android-client", { "widgets": [] }] ] } }Run prebuild:
Result:
Root Cause
Expo's plugin resolver uses resolveFrom (filesystem-based), which does not consult package.json exports map. Since no physical app.plugin.js exists at the package root of either -client package, the fallback to main entry triggers the crash.
Additional Information (Optional)
No response