Skip to content

fix: upgrade Docker build to Node 22 to resolve ESM require failure - #404

Merged
BenjaminMichaelis merged 2 commits into
copilot/combine-dependabot-prs-and-update-packagesfrom
copilot/fix-copilot-issue-again
Aug 12, 2026
Merged

fix: upgrade Docker build to Node 22 to resolve ESM require failure#404
BenjaminMichaelis merged 2 commits into
copilot/combine-dependabot-prs-and-update-packagesfrom
copilot/fix-copilot-issue-again

Conversation

Copilot AI commented Aug 12, 2026

Copy link
Copy Markdown

sass 1.102.0 depends on chokidar v5, which is ESM-only. The Docker build was installing Node 20.14.0 via tdnf install nodejs, which doesn't support require() of ESM modules — causing the Docker build to fail with ERR_REQUIRE_ESM.

Change

  • Dockerfile: Replace nodejs with nodejs22 in the tdnf install step. Node 22.12+ added stable support for require() of synchronous ESM modules, resolving the incompatibility.
-# This is Node v16. For 18, use nodejs18.
+# Use nodejs22 for Node 22.x (required for ESM-compatible dependencies).
 RUN --mount=type=cache,id=try-tdnf,target=/var/cache/tdnf,sharing=locked \
-    tdnf install -y gawk nodejs npm
+    tdnf install -y gawk nodejs22 npm

Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issue with Copilot execution fix: upgrade Docker build to Node 22 to resolve ESM require failure Aug 12, 2026
@BenjaminMichaelis
BenjaminMichaelis merged commit f6703df into copilot/combine-dependabot-prs-and-update-packages Aug 12, 2026
@BenjaminMichaelis
BenjaminMichaelis deleted the copilot/fix-copilot-issue-again branch August 12, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants