AWS Device Farm - Getting issues with Canvas and additional packages

0

Hi there, I'm making attempts to run CodeceptJS Appium test suites for iOS and Android on Device Farm. Everything will go well, but an issue occurs when I turn on using ResembleHelper as following:

Could not load helper ResembleHelper from module 'codeceptjs-resemblehelper':
dlopen(/private/tmp/scratch_01gRm.scratch/test-packagegv_xYF/node_modules/codeceptjs-dvf-poc/node_modules/resemblejs/node_modules/canvas/build/Release/canvas.node, 1): Library not loaded: /usr/local/opt/pango/lib/libpangocairo-1.0.0.dylib
  Referenced from: /private/tmp/scratch_01gRm.scratch/test-packagegv_xYF/node_modules/codeceptjs-dvf-poc/node_modules/resemblejs/node_modules/canvas/build/Release/canvas.node
  Reason: image not found
Error: dlopen(/private/tmp/scratch_01gRm.scratch/test-packagegv_xYF/node_modules/codeceptjs-dvf-poc/node_modules/resemblejs/node_modules/canvas/build/Release/canvas.node, 1): Library not loaded: /usr/local/opt/pango/lib/libpangocairo-1.0.0.dylib

Is there any way to resolve it to make ResembleHelper usable on Device Farm? install missing packages or pull them from somewhere,... Thanks.

  • .dylib is a MacOS file format, AWS Device Farm servers are Linux. I imagine you're running npm install on a Mac and then uploading the whole folder including node_modules to AWS, whereas what I think you need to do is run npm install during the 'install' stage of your test spec.

已提問 2 年前檢視次數 51 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南