From 24d2d6fe8c3e11597a6a45c7e48a6a463719d2af Mon Sep 17 00:00:00 2001 From: Rick Tonoli Date: Sun, 16 Feb 2025 13:25:31 +1300 Subject: [PATCH] Added canvas, needed by prismarine-viewer Without canvas, app does not start, gives a MODULE_NOT_FOUND error in prismarine-viewer components. --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 73f3bf2..60b8cb8 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,8 @@ "@google/generative-ai": "^0.2.1", "@huggingface/inference": "^2.8.1", "@mistralai/mistralai": "^1.1.0", + "canvas": "^3.1.0", + "express": "^4.18.2", "google-translate-api-x": "^10.7.1", "groq-sdk": "^0.5.0", "minecraft-data": "^3.78.0", @@ -20,11 +22,10 @@ "prismarine-viewer": "^1.28.0", "replicate": "^0.29.4", "ses": "^1.9.1", - "vec3": "^0.1.10", - "yargs": "^17.7.2", "socket.io": "^4.7.2", "socket.io-client": "^4.7.2", - "express": "^4.18.2" + "vec3": "^0.1.10", + "yargs": "^17.7.2" }, "scripts": { "postinstall": "patch-package",