[Bug]: ERR_REQUIRE_ESM Node.js v20.9.0 #14
Unanswered
jlecordier
asked this question in
Q&A
Replies: 1 comment 1 reply
-
pixelmatch version 6 is now a ES module and can not be used with Try to use pixelmatch version 5.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What happened?
When using
$this->assertMatchesImageSnapshot($path);
, I get the error :How to reproduce the bug
Package Version
1.1.0
PHP Version
8.3.2
Which operating systems does with happen with?
macOS
Notes
Thanks for your work.
To make it work, I had to
npm i
inside thepixelmatch-php
folder.If I try to install
pixelmatch
globally, I get the errorError: Cannot find module 'pngjs'
, even if I installpngjs
globallyBeta Was this translation helpful? Give feedback.
All reactions