abhinaba-ghosh / playwright-lighthouse

:performing_arts:: Playwright Lighthouse Audit
https://www.npmjs.com/package/playwright-lighthouse
MIT License
240 stars 28 forks source link

getting error for module #45

Closed vbpatel73 closed 1 year ago

vbpatel73 commented 1 year ago

I am getting this error:

Error [ERR_REQUIRE_ESM]: require() of ES Module C:\projects\playwright_lighthouse_report\node_modules\lighthouse\core\index.js from C:\projects\playwright_lighthouse_report\node_modules\playwright-lighthouse\src\task.js not supported. Instead change the require of index.js in C:\projects\playwright_lighthouse_report\node_modules\playwright-lighthouse\src\task.js to a dynamic import() which is available in all CommonJS modules.

how to solve it pls?

jaktestowac commented 1 year ago

https://stackoverflow.com/a/75488863/1266040 here you are :D