webdriverio/visual-testing

Unable to install wdio-image-comparison-service

Searcher865 opened this issue · 4 comments

Environment (please complete the following information):

  • Node.js version: [v18.14.0]
  • NPM version: [9.3.1]
  • Browser name and version: [Chrome 109.0.5414.119]
  • Platform name and version: [macOS Ventura 13.2 (22D49) - macbook air m1]
  • Framework name and version: [webdriverIO 8]
  • Plugin name and version: [last]
  • webdriver-image-comparison version: [last]

Describe the bug
Unable to install wdio-image-comparison

To Reproduce

  1. try npm i wdio-image-comparison
    or
    wdio-image-comparison-service
    or
    npm init wdio . (select during initialization wdio-image-comparison-service)
    [Include code or an example repository that can easily be set up]

Expected behavior
Successful installation

Log

logs

You're on NodeJS 18, there's an open ticket for the core of this module to upgrade it to that. It hasn't been fixed and released. If you revert back to NodeJS 16 it will work

this is actually an issue with canvas as there isn't currently and arm64 build, there is a workaround for the time being https://github.com/Automattic/node-canvas/wiki/Installation:-Mac-OS-X

I used the homebrew installation and it works

For info, this is the issue on node-canvas board Automattic/node-canvas#1662

GRmeB commented

I'm using Mac OS Ventura 13.3.1 with Node.js 18.12.1 and 16.20.0 and image comparison plugin 5.0.2. The workaround with homebrew is not working for me. I'm a little bit frustrated on that canvas issue. Maybe someone has some more hints for me?

I still get messages like that: ERROR @wdio/utils:initialiseServices: Error: Couldn't initialise "wdio-image-comparison-service"

That seems to me that the image-comparison-service is not working for me :(

This should be fixed with #118