#TS2304: Cannot find name  HTMLCanvasElement

1 messages · Page 1 of 1 (latest)

worthy shard
#

Title...
Any tips?

vivid flume
worthy shard
vivid flume
#

do you use canvas directly?
i think theres a bug with our napi implemention

worthy shard
#

yeah I do

vivid flume
#

and instead would directly to another package hold on

worthy shard
#

is there a temp fix? node:canvas or smth?

vivid flume
#

node-canvas uses
the v8 apis

try bun add @napi-rs/canvas

#

and using that. its a simialr interface

#

id consider this the temp fix but
we should implement some of v8s apis because node addons like this will try to use them

worthy shard
#

Is there some sort of roadmap for when that could potentially happen?

#

@vivid flume

vivid flume
#

check if theres a github issue for canvas

#

that is the best way to track this issue

worthy shard