Open digracesion opened 1 year ago
Seeing same issue
I'm also getting this, seems like a duplicate of #45.
As suggested on the stackoverflow link provided on #45, adding:
"type": "module",
to my package.json
solved the issue.
There's also this question at #46 but there's no response so I'm not sure if there's an alternative to the solution above.
What if someone does not want to add "type": "module" in their package.json because project is configured with commonjs? Do we have any other solution?
What if someone does not want to add "type": "module" in their package.json because project is configured with commonjs? Do we have any other solution?
I posted my fix here without placing the "type" module
https://github.com/abhinaba-ghosh/playwright-lighthouse/issues/72
Everytime I run my tests, I'm encountering the following error message:
But
package.json
showsplaywright-lighthouse": "^3.1.0
, so I'm quite confused as to what's wrong here.I tried installing
npm i -D tsconfig-paths
thinking that maybe this was an issue with the reading from the ts file and I'm currently seeing the following: