-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not resolve a module for a custom reporter #4170
Comments
Do you have something at Could you print here its package.json? |
Yes,
|
As you see, you have an outdated version of Detox, not 20.x but 18.x. Please sort out your dependency issues. |
Thanks, never encountered this before, my root |
@noomorph my sincere apologies, I had switched branches to work on something else, this is the correct detox
|
Please reinstall your node modules and verify that you are experiencing exactly the same issue as originally |
I have done this |
From your project root directory, run
|
|
I think it is impossible to get this error then. Are you sure?
|
Yeah
The debug.log file
|
Could you please upgrade your Node.js to 14.21.3 and if that does not help - run your detox command with --debug: detox test -c ios-debug --debug It should print the entire resolved Jest config in runtime. I want to check it out. |
debug.log file
|
hmm ok 🧐 try --showConfig instead of --debug |
|
So, it fails earlier than it can show a config. I don't know how to help. 😕 I'd start debugging that function, perhaps: normalizeReporters (//node_modules/jest-config/build/normalize.js:409:20 No idea why it doesn't like the path. It should work 🤷♂️ |
Ok, will check it, thanks for your help |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions! For more information on bots in this repository, read this discussion. |
I have exactly the same problem. I'm using e2e/jest.config.js
and my .detoxrc.js (at root level)
When I run |
I debugged node modules file and I found that the reporter is null.
'reporterPath` is detox/runners/jest/reporter and rootDir is the projectDir myproject/ If I comment the line of the reporters in jest.config works (default) but then another error is thrown.
|
I changed to use ts (https://wix.github.io/Detox/docs/guide/typescript/) and I found the solution here: #3771 (comment) . Removing dependency from package.json: |
Description
Already posted on SO here
I just upgraded my Detox from ^18.6.2 to ^20.11.3 and Jest from ^26.6.3 to ^29.
Followed the migration docs.
detox build
works well however when I try to rundetox test
I get the error belowMy config.js file is as below:
detoxrc.json
Node
14.17.6
npm6.14.15
, also tried with a higher node version(20.5.0) and that didn't work eitherYour environment
Detox version: 20.11.3
React Native version: 0.70.4
Node version: 14.17.6
Device model: macOS 12.4
OS: IOS
Test-runner: Jest 29
The text was updated successfully, but these errors were encountered: