We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to use imagediff with webpack (actually, karma-webpack). During "compilation", I get
ERROR in ./~/imagediff/imagediff.js Module not found: Error: Cannot resolve module 'fs' in [...]/node_modules/imagediff @ ./~/imagediff/imagediff.js 336:4-17
Then the tests are launched and I see
Uncaught TypeError: Cannot read property 'imagediff' of undefined at [...]/karma/tests/visualfill.js:69949 <- webpack:///~/imagediff/imagediff.js:37:4
Looking a bit at the source (not that I understand much), I see things like
if (typeof module !== 'undefined') { imagediff.imageDataToPNG = imageDataToPNG; }
even though I think webpack defines module.
Also
(function (name, definition) { var root = this;
I think this is undefined there (in strict mode).
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to use imagediff with webpack (actually, karma-webpack).
During "compilation", I get
Then the tests are launched and I see
Looking a bit at the source (not that I understand much), I see things like
even though I think webpack defines module.
Also
I think this is undefined there (in strict mode).
The text was updated successfully, but these errors were encountered: