Skip to content

In 3.12.0, the new decap-cms-widget-richtext widget requires separate install? #7787

@anselmbradford

Description

@anselmbradford

Describe the bug
Using Vite 8.0.8, the latest update (3.12.0) causes the following error at build:

Error: [vite]: Rolldown failed to resolve import "decap-cms-widget-richtext" from "/Users/[username]/Projects/[project-name]/node_modules/decap-cms-app/dist/esm/extensions.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`

If the config is left unchanged, or it is added to external, there is a runtime error of:

Failed to resolve module specifier "decap-cms-widget-richtext". Relative references must start with either "/", "./", or "../".

Explicitly adding the dependency decap-cms-widget-richtext alongside decap-cms-app fixes the issue.

To Reproduce

Expected behavior
No additional dependencies should need to be installed versus decap-cms-app@3.11.0

Applicable Versions:

  • Decap CMS version: 3.12.0
  • Git provider: GitHub
  • OS: Mac 15
  • Browser version Chrome 147
  • Node.JS version: v25.6.1
  • yarn version: v4.13.0

CMS configuration
https://github.com/cfpb/design-system/blob/main/docs/admin/config.yml

Additional context
Is this the expected behavior, or am I missing something with how package management works?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugcode to address defects in shipped code

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions