#TS2304: Cannot find name HTMLCanvasElement
1 messages · Page 1 of 1 (latest)
in tsconfig add to the types array
"@types/web"
and then bun i @types/web
hey sorry got another sorta related question... got this error when I was trying to run bun run dev
error: Cannot find module "../build/Release/canvas.node" from "/Users/tony/Developer/skyzar/assets/node_modules/canvas/lib/bindings.js"
do you use canvas directly?
i think theres a bug with our napi implemention
yeah I do
and instead would directly to another package hold on
is there a temp fix? node:canvas or smth?
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