-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Library Version
1.2.0
React Native Version
0.81.5
React Version
19.1.0
Expo Version
54.0.30
Minimal Reproduction
- Install 1.2.0 voltra will causing error on prebuild
- downgrade back to 1.1.2 working fine.
Additional Information (Optional)
bun run prebuild:testnet --clean
✔ Continue with uncommitted changes? … yes
✔ Cleared android, ios code
✔ Created native directories
✔ Updated package.json | no changes
» android: EDGE_TO_EDGE_PLUGIN: edgeToEdgeEnabled field is explicitly set to false in the project app config. In Android 16+ (targetSdkVersion 36) it is no longer be possible to disable edge-to-edge. Learn more: https://expo.fyi/edge-to-edge-rollout
[Voltra] Generated Info.plist
[Voltra] Generated Assets.xcassets
[Voltra]
(node:32568) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use node --trace-warnings ... to show where the warning was created)
✖ Prebuild failed
SyntaxError: [ios.dangerous]: withIosDangerousBaseMod: Cannot use import statement outside a module
/Users/liho/Desktop/nextrare/nextrare-app/node_modules/voltra/build/server.js:3
import { promisify } from 'node:util';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at wrapSafe (node:internal/modules/cjs/loader:1378:20)
at Module._compile (node:internal/modules/cjs/loader:1428:41)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at cjsLoader (node:internal/modules/esm/translators:346:17)
at ModuleWrap. (node:internal/modules/esm/translators:286:7)
at ModuleJob.run (node:internal/modules/esm/module_job:234:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
at async generateSwiftFiles (/Users/liho/Desktop/nextrare/nextrare-app/node_modules/voltra/plugin/build/ios-widget/files/swift.js:60:38)
error: script "prebuild:testnet" exited with code 1