Skip to content

fix(deps): pin clean-stack to 5.2.0 for browser compatibility#7701

Merged
martinjagodic merged 4 commits intodecaporg:mainfrom
EricGrill:fix/clean-stack-browser-compatibility
Feb 11, 2026
Merged

fix(deps): pin clean-stack to 5.2.0 for browser compatibility#7701
martinjagodic merged 4 commits intodecaporg:mainfrom
EricGrill:fix/clean-stack-browser-compatibility

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 clean-stack@5.3.0+ 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
Copy link
Contributor

@yanthomasdev yanthomasdev left a comment

Choose a reason for hiding this comment

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

Thanks @EricGrill. Pushed a change that should fix your PR.

@martinjagodic martinjagodic merged commit 64afc16 into decaporg:main Feb 11, 2026
9 checks passed
martinjagodic pushed a commit to poslovnimediji/decap-cms that referenced this pull request Feb 25, 2026
…rg#7701)

* fix(deps): pin clean-stack to 5.2.0 for browser compatibility

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

* fix: update `package-lock.json`

---------

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
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"

3 participants