[Detox 20] funpermaproxy.callable | undefined is not a function
See original GitHub issueWhat happened?
❯ yarn detox build -c ios.staging
yarn run v1.22.17
$ /Users/frexuz/www/currenxie-mobile-react-native/node_modules/.bin/detox build -c ios.staging
/Users/frexuz/www/currenxie-mobile-react-native/node_modules/detox/src/realms/DetoxContext.js:73
element = funpermaproxy.callable(() => this[symbols.worker].element);
^
TypeError: undefined is not a function
at DetoxPrimaryContext.<instance_members_initializer> (/Users/frexuz/www/currenxie-mobile-react-native/node_modules/detox/src/realms/DetoxContext.js:73:27)
at new DetoxContext (/Users/frexuz/www/currenxie-mobile-react-native/node_modules/detox/src/realms/DetoxContext.js:20:14)
at new DetoxPrimaryContext (/Users/frexuz/www/currenxie-mobile-react-native/node_modules/detox/src/realms/DetoxPrimaryContext.js:31:5)
at Object.<anonymous> (/Users/frexuz/www/currenxie-mobile-react-native/node_modules/detox/src/realms/primary.js:3:18)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
What was the expected behaviour?
Tried follow the Migration instructions. Expecting build/test to work 😃
Was it tested on latest Detox?
- I have tested this issue on the latest Detox release and it still reproduces.
Help us reproduce this issue!
No response
In what environment did this happen?
Detox version: 20.0.0 React Native version: 0.70.4 Node version: 14.18.1 Test-runner (select one): jest
Also
- “jest”: “29.3.1”,
- “ts-jest”: “29.0.3”,
Detox logs
No response
Device logs
No response
More data, please!
{
"globalSetup": "detox/runners/jest/globalSetup",
"globalTeardown": "detox/runners/jest/globalTeardown",
"maxWorkers": 1,
"preset": "ts-jest",
"reporters": ["detox/runners/jest/reporter"],
"setupFilesAfterEnv": ["./init.ts"],
"testEnvironment": "detox/runners/jest/testEnvironment",
"testTimeout": 300000,
"verbose": true
}
init.ts
import { device } from 'detox'
beforeAll(async () => {
await device.launchApp()
})
beforeEach(async () => {
await device.reloadReactNative()
})
detox.config.js
module.exports = {
testRunner: {
$0: 'jest',
args: {
config: 'e2e/config.json',
_: ['e2e'],
},
},
behavior: {
init: {
exposeGlobals: process.env.DETOX_EXPOSE_GLOBALS === '0' ? false : true,
},
},
apps: {
'ios.staging.app': {
type: 'ios.app',
binaryPath:
'ios/build/Build/Products/Release.Staging-iphonesimulator/CX Staging.app',
build:
"RN_SRC_EXT=e2e.ts,e2e.tsx,e2e.js xcodebuild -workspace ios/CurrenxieMobileReactNative.xcworkspace -scheme 'CurrenxieMobileReactNative - Release.Staging' -configuration Release.Staging -sdk iphonesimulator -derivedDataPath ios/build -parallelizeTargets -UseModernBuildSystem=YES | xcpretty",
},
},
devices: {
simulator: {
type: 'ios.simulator',
headless: process.env.CI ? true : undefined,
device: {
type: 'iPhone 13 Pro',
os: 'iOS 15.2',
},
},
},
configurations: {
'ios.staging': {
device: 'simulator',
app: 'ios.staging.app',
},
},
}
❯ cat node_modules/funpermaproxy/package.json
{
"name": "funpermaproxy",
"version": "1.0.1",
Issue Analytics
- State:
- Created 10 months ago
- Reactions:1
- Comments:5
Top Results From Across the Web
Getting error "detox_1.web is not a function" - Stack Overflow
I'm getting an error trying to use web() . I'm on Detox 18.22.1 ...
Read more >detox: Versions | Openbase
Detox 20 (codename ⬛ "Ashan") is finally shipped. :shipit: ... ~#3690 ( funpermaproxy.callable | undefined is not a function )~ (fixed in 20.0.1) ......
Read more >Detox Versions - Open Source Agenda
View the latest Detox versions. ... ~#3690 ( funpermaproxy.callable | undefined is not a function )~ (fixed in 20.0.1); ~#3687 Platform-specific: -R, ...
Read more >Wix Detox Statistics & Issues - Codesti
Wix Detox: Gray box end-to-end testing and automation framework for mobile apps Check ... [Detox 20] funpermaproxy.callable | undefined is not a function...
Read more >Issues - Detox - Wix.com - Geeks
Detox v20 - custom environment - incorrect docs. #3721 opened in 5 hours ... [Detox 20] funpermaproxy.callable | undefined is not a function....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hell yeah we would! 😃 Applied 😃
@kg-currenxie thanks again for the prompt report! Would you consider adding
currenxie
to our showcase page? If so, please tap thejoin showcase
button 🙏🏻