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회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인