-
Notifications
You must be signed in to change notification settings - Fork 250
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
Error: MODULE_NOT_FOUND (undefined) Error: Cannot find module 'dotenv' #2185
Comments
Hi @nicojs,
I thinking about |
This happen to me as well on first setup. I think main problem could be, that this package was not copied to stryker temp directory. Please check if node_modules in sandbox contain this package. |
Hi @HonzaMac , actually the The stryker probably does not recognize others |
I discover more about this, and our project basically do this:
|
@nicojs Do you have some solution for this? I put
and stryker doesn't recognize them. I'm really sad with that. 😿 |
As far as I know, the only way to let Could you please try to figure out the following things?
Sorry, it's hard to debug these kinds of things from remote. If you can provide a small reproduction repository with a similar setup, I would be able to help more. |
The errors above are examples and I omit the others import errors from rest of modules. |
Well, the only thing I can tell you is that it is not something directly related to Stryker.
|
@nicojs I found a problem here, inside stryker sandbox the nested packages doesn't have yours node_modules. |
So if I understand correctly, the Is tis your setup?
Sorry, but this keeps me guessing. A small reproduction repository would be helpful. |
My setup:
Right? Okay, but inside And here has my
|
@nicojs this structure above helps, or it's best to you I create the repo? I'm trying to create this repo but I does not have time yet, sorry. |
What is the status of the reproduction? |
I'm does not have time yet to reproduce in a public repo. I wish to do in this quarter. |
@jtlimo good news 🎉, version 4.4 just released with I'm very curious to know what you think 🙌 |
Wow, I'm very happy to see this happen! Thanks @nicojs ! |
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. |
Summary
Hi, I'm trying to use stryker with typescript. But when running stryker throws this error:
Error: MODULE_NOT_FOUND (undefined) Error: Cannot find module 'dotenv'
Stryker config
Test runner config
I'm using mocha configuration at package.json
Stryker environment
Test runner environment
Test command
Your Environment
Add stryker.log
stryker.log
The text was updated successfully, but these errors were encountered: