Skip to content

Update CI to Node 24#377

Merged
rom1504 merged 2 commits intomasterfrom
update-ci-node-24
Mar 30, 2026
Merged

Update CI to Node 24#377
rom1504 merged 2 commits intomasterfrom
update-ci-node-24

Conversation

@rom1504
Copy link
Copy Markdown
Member

@rom1504 rom1504 commented Mar 29, 2026

Summary

  • Update CI node version to 24

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@socket-security
Copy link
Copy Markdown

socket-security bot commented Mar 29, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedworkbox-webpack-plugin@​6.6.11001007350100

View full report

The canvas module is a server-side dependency used by prismarine-viewer
(in entities.js and atlas.js). In browser builds, the native Canvas API
is available instead. Adding canvas: false to webpack aliases prevents
the "Module not found: Error: Can't resolve 'canvas'" build failure.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jose: false,
'@azure/msal-node': false
'@azure/msal-node': false,
canvas: false
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot consequence of this?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With Node 24, the canvas native addon (an optional dependency of prismarine-viewer) no longer installs successfully, so it's absent from node_modules. This caused webpack to fail with Can't resolve 'canvas' when bundling prismarine-viewer/viewer/lib/entities.js line 7.

Setting canvas: false stubs out require('canvas') as false for the browser bundle. In browser environments, the code falls back to the native HTMLCanvasElement API (document.createElement('canvas')) rather than the npm canvas package — the npm package is only needed for server-side (Node.js) canvas rendering.

@rom1504 rom1504 merged commit 0a21ac7 into master Mar 30, 2026
5 checks passed
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