raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.24k stars 2.94k forks source link

Native Binding are not supported #5449

Open mtin79 opened 1 year ago

mtin79 commented 1 year ago

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?

WinnieS0728 commented 3 weeks ago

same issue here using package ssh2

any update or solution about this ?