-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
Problem with Integration percy/webdriverio in project "Error: ReferenceError: require is not defined in ES module scope, you can use import instead" #525
Comments
Can you provide a minimal reproduction case? |
Actual result: test works fine and I can check result in browserstack but get error Error: ReferenceError: require is not defined in ES module scope, you can use import instead (also described above) |
@mishko-misha can you share a GitHub project that has executed the steps so that maintainers only need to clone, install deps and run a command? |
@mishko-misha can you share a GitHub project that has executed the steps so that maintainers only need to clone, install deps and run a command? yes, I can but without my access to browserstack, percy and app.apk. If you agree, I will send. by the way: I get similar error from webdriverio/webdriverio#13773
|
Ideally, reduce everything unnecessary to reproduce the problem. This error is not related to BrowserStack or which capabilities you are using. The simpler the reproduction case the better. |
Environment (please complete the following information):
Describe the bug
Actual result: I get failed with error "Error: ReferenceError: require is not defined in ES module scope, you can use import instead". (check Logs when I use require.txt)
Logs when I use require.txt
Actual result: I get failed (check Logs when I use import.txt)
Logs when I use import.txt
From Percy: 37950736_cli.json
FYI: I opened @percy/webdriverio and saw @percy/core The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@percy/core")' call instead.
Additional context
Settings:
Could you give me advice how to fix my problem?
The text was updated successfully, but these errors were encountered: