I need to get a "Document" representation from jsdom for mozilla readability.
Unfortunatelly when i build the extension i get the following error:
build failed (node_modules/canvas/lib/bindings.js:3:25 const bindings = require('../build/Release/canvas.node')): native bindings (e.g., .node files) are not supported because they are neither cross-platform nor cross-architecture; for example, native bindings built on a M1 mac would not work on an Intel mac
i tried many other libs and npm packages. unfortunatelly i don't seem to be able to get a "Document" type representation of a url that mozilla readybility needs except i use jsdom.
any ideas on how to get canvas natively prebuilt or other libs that don't need canvas?
thanks!
Steps To Reproduce
use the following dependency in your project:
jsdom
Current Behaviour
build failed (node_modules/canvas/lib/bindings.js:3:25 const bindings = require('../build/Release/canvas.node')): native bindings (e.g., .node files) are not supported because they are neither cross-platform nor cross-architecture; for example, native bindings built on a M1 mac would not work on an Intel mac
Expected Behaviour
documentation or suggestions on how to work around this?
Description
Dependencies: "jsdom": "16.0.0", "@mozilla/readability": "^0.4.2",
I need to get a "Document" representation from jsdom for mozilla readability. Unfortunatelly when i build the extension i get the following error:
build failed (node_modules/canvas/lib/bindings.js:3:25 const bindings = require('../build/Release/canvas.node')): native bindings (e.g., .node files) are not supported because they are neither cross-platform nor cross-architecture; for example, native bindings built on a M1 mac would not work on an Intel mac
i tried many other libs and npm packages. unfortunatelly i don't seem to be able to get a "Document" type representation of a url that mozilla readybility needs except i use jsdom.
any ideas on how to get canvas natively prebuilt or other libs that don't need canvas?
thanks!
Steps To Reproduce
use the following dependency in your project: jsdom
Current Behaviour
build failed (node_modules/canvas/lib/bindings.js:3:25 const bindings = require('../build/Release/canvas.node')): native bindings (e.g., .node files) are not supported because they are neither cross-platform nor cross-architecture; for example, native bindings built on a M1 mac would not work on an Intel mac
Expected Behaviour
documentation or suggestions on how to work around this?