-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
require() of ES Module playwright-lighthouse\index.js not supported. #51
Comments
getting this same issue as well. did you also end up with this issue after trying to downgrade the lighthouse version? |
Finally we have some solutions for this? I'm having the same issue. Any workaround? |
I'm just following the example on https://www.npmjs.com/package/playwright-lighthouse and I'm also having the same issue |
you can use this version which works until there is a fix for this problem |
Doing this and I still get the error |
could anyone share a small repository where I can reproduce the same? Trying to resolve this by this week |
I believe this should help you in reproducing the issue. https://vinayksharma.medium.com/lighthouse-integration-with-playwright-d2b58386f77 |
ahh ... for me it still works since i downgraded |
@andreiancas22 , can you share the sample repo . |
this is the code that i am running:
and this is the output that i got after running the test: package.json content |
thanks @andreiancas22 , it worked with the mentioned lighthouse & playwright-lightout version in your package.json along with the @playwright/test version that you are using. Since , we are using playwright 1.35.0 as of now and we might need to wait for the proper solution with latest playwright-lighthouse version. |
@sbettego glad that it helped, yea we need to wait for the playwright-lighthouse fix |
So what should I do? Downgrading doesn't solve it for me. |
|
I'm also still encountering this issue even after downgrading to those versions |
Looking into this issue. Will update here once I have something |
Adding |
Adding that to my package.json doesn't work. Is there any update on fixing this bug? |
Hello? Any update? |
|
@andreiancas22 Did you face issues trying to use the |
no, it worked perfectly |
I found the error (after doing more research and thanks to GitHub Copilot jajaja), and it was the incompatibility of the Instead of using the default And, I downgraded the versions as suggested here: Thanks! :D |
Is there any update on this one? I've tried different combinations of package versions but still have the same error -
|
any updates? |
Encountering the same problem here.. Just wondering what the status is |
@stijnelskens adding |
the module |
I posted the solution here: #72 if some of you are looking for info |
After bumping the version from 2.2.2 to 31.1.0 Im getting an error flowing error in my project
require() of ES Module playwright-lighthouse\index.js not supported. Playwright version - 1.35.1, lighthouse version - 10.3.0.
I tried to set in package.json "type": "module", which removes the error but then playwright tests are not recognizable.
The text was updated successfully, but these errors were encountered: