You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error when suing typescript (javascript is fine) I tried to rebuild and remove the the node_modules and reinstall also tried bun.sh and deno, even tried with wsl (I'm on windows)
node:internal/modules/cjs/loader:1078
throw err;
^
Error: Cannot find module '/mnt/c/Users/Major/Desktop/canvas/index.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
at Module._load (node:internal/modules/cjs/loader:920:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Note:
when using bun.sh I get this error instead
error: Cannot find module "../build/Release/canvas.node" from "/mnt/c/Users/Major/Desktop/canvas/node_modules/canvas/lib/bindings.js
Did you by chance install this to your system globally rather than inside of a typescript project? It's being found inside my TS project but getting vulns that prevent a successful startup.
Issue
I'm getting this error when suing typescript (javascript is fine) I tried to rebuild and remove the the node_modules and reinstall also tried bun.sh and deno, even tried with wsl (I'm on windows)
Note:
when using bun.sh I get this error instead
Steps to Reproduce
Your Environment
npm list canvas
oryarn list canvas
): -- canvas@2.11.2The text was updated successfully, but these errors were encountered: