Skip to content

Conversation

@EricGrill
Copy link
Contributor

Summary

Fixes #7616 - clean-stack 5.3.0+ is not browser friendly

  • Added overrides and resolutions to pin clean-stack to 5.2.0
  • This prevents npm from resolving to versions 5.3.0+ which use node:url imports
  • The node: protocol URLs break webpack and Vite builds

Problem

When users install decap-cms via npm with webpack or Vite bundlers, they get:

Module build failed: UnhandledSchemeError: Reading from "node:url" is not handled by plugins

This is because [email protected]+ introduced node:url imports which bundlers don't handle by default.

Solution

Pin clean-stack to 5.2.0 (the last version without node:url) via:

  • resolutions field (for yarn)
  • overrides field (for npm)

Test Plan

  • Verify webpack builds work with this change
  • Verify Vite builds work with this change

Generated with Claude Code

clean-stack 5.3.0+ introduced a 'node:url' import which breaks
webpack/Vite builds as bundlers don't handle 'node:' protocol URLs.

This pins clean-stack to 5.2.0 via both 'resolutions' (for yarn) and
'overrides' (for npm) to ensure browser-compatible version is used.

Fixes decaporg#7616
@EricGrill EricGrill requested a review from a team as a code owner January 14, 2026 18:58
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.

bug: deps - clean-stack 5.3.0+ is not browser friendly - triggers Module build failed: UnhandledSchemeError: Reading from "node:url"

1 participant