soroban-abacus-flashcards/.github/workflows
Thomas Hallock 192de5c6b5 fix: upgrade to Node.js 20 to resolve ES module import issues
Fixes production error where dynamic imports of @svg-maps/world and @svg-maps/usa
packages fail with "Unexpected token 'export'" error.

**Root cause:**
- The @svg-maps packages use ES module syntax (`export default {...}`) in index.js
- Node.js 18 cannot load these files via dynamic import() without "type": "module"
- Node.js 20 has improved ES module support and handles this correctly

**Changes:**
- Dockerfile: FROM node:18-alpine → FROM node:20-alpine
- deploy.yml: node-version "18" → "20"

**Testing:**
-  Local dev server with Node 20: works (dynamic imports succeed)
-  Production container with Node 18: fails (dynamic imports fail)
-  Tested: `node -e "import('@svg-maps/world').then(...)"` succeeds on Node 20

This fix ensures the Socket.IO server can successfully process START_GAME moves
by loading map data via dynamic imports in the Validator.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 12:44:02 -06:00
..
deploy-storybook.yml fix: prevent database imports from being bundled into client code 2025-10-10 11:40:46 -05:00
deploy.yml fix: upgrade to Node.js 20 to resolve ES module import issues 2025-11-23 12:44:02 -06:00
publish-abacus-react.yml fix: prevent database imports from being bundled into client code 2025-10-10 11:40:46 -05:00
release.yml fix: prevent database imports from being bundled into client code 2025-10-10 11:40:46 -05:00
templates-test.yml fix: prevent database imports from being bundled into client code 2025-10-10 11:40:46 -05:00
update-abacus-examples.yml fix: prevent database imports from being bundled into client code 2025-10-10 11:40:46 -05:00
update-template-examples.yml fix: prevent database imports from being bundled into client code 2025-10-10 11:40:46 -05:00
verify-examples.yml fix: prevent database imports from being bundled into client code 2025-10-10 11:40:46 -05:00