-
Notifications
You must be signed in to change notification settings - Fork 65
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: Cannot find module 'browserstack-config.json' #152
Comments
TestCafe doesn't provide support for .env files out of the box, so I assume that you use some custom module like |
This issue was automatically closed because there was no response to our request for more information from the original author. Currently, we don't have enough information to take action. Please reach out to us if you find the necessary information and are able to share it. We are also eager to know if you resolved the issue on your own and can share your findings with everyone. |
@AlexKamaev I had the same issue, and it doesn't seem related to dotenv. When the config path is required, it seems to be doing it relative to the directory The docs imply that the $ export BROWSERSTACK_CAPABILITIES_CONFIG_PATH="../../../browserstack-config.json" |
We will update our documentation and mention that a search for the |
@alexphilin I don't believe the documentation was updated, I've just spent quite a bit of time debugging this issue as well. Can you commit to updating the docs please? |
Hi @nick-msm , Thank you for reminding. I put it in our TODO list. |
This issue was automatically closed because there was no response to our request for more information from the original author. Currently, we don't have enough information to take action. Please reach out to us if you find the necessary information and are able to share it. We are also eager to know if you resolved the issue on your own and can share your findings with everyone. |
I have a .env file:
BROWSERSTACK_CAPABILITIES_CONFIG_PATH="./browserstack-config.json"
the browserstack-config.json is in the top level directory in the project, when I run the tests with this environment variable the following error is thrown:
Error: Cannot find module './browserstack-config.json'
Removing the environment variable successfully runs the tests, am I missing something?
The text was updated successfully, but these errors were encountered: