I keep getting this error on both my projects party-stable
and party-dev
from time to time
Error: Cannot find module '../build/Release/canvas.node'
Require stack:
- /rbd/pnpm-volume/76b98dfe-b6a5-425a-bd10-be07af6b4014/node_modules/.registry.npmjs.org/canvas/2.6.1/node_modules/canvas/lib/bindings.js
- /rbd/pnpm-volume/76b98dfe-b6a5-425a-bd10-be07af6b4014/node_modules/.registry.npmjs.org/canvas/2.6.1/node_modules/canvas/lib/canvas.js
- /rbd/pnpm-volume/76b98dfe-b6a5-425a-bd10-be07af6b4014/node_modules/.registry.npmjs.org/canvas/2.6.1/node_modules/canvas/index.js
- /app/utils/functions.js
- /app/server.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:610:15)
at Function.Module._load (internal/modules/cjs/loader.js:526:27)
at Module.require (internal/modules/cjs/loader.js:666:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (/rbd/pnpm-volume/76b98dfe-b6a5-425a-bd10-be07af6b4014/node_modules/.registry.npmjs.org/canvas/2.6.1/node_modules/canvas/lib/bindings.js:3:18)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Module.require (internal/modules/cjs/loader.js:666:19)
I tried everything I could already find on the forums, but nothing has worked, the only temporary solution is removing and adding again the module, but that just works temporarely, I’ve had this issue for almost 4 months