Backend crash: jsdom module not found in production container #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
restitution-backend-1exits with code 1:Root Cause
jsdomis listed indevDependencies(package.json line 54), but the backend uses it at runtime for authoritative server simulation (running Phaser inside JSDOM). The Dockerfile production stage runsnpm install --production --omit=dev, which strips devDependencies.Fix
In
package.json, move"jsdom": "^20.0.2"fromdevDependencies→dependencies.Dependencies