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?
Describe the bug
Using Vite 8.0.8, the latest update (3.12.0) causes the following error at build:
If the config is left unchanged, or it is added to
external, there is a runtime error of:Explicitly adding the dependency
decap-cms-widget-richtextalongsidedecap-cms-appfixes the issue.To Reproduce
Expected behavior
No additional dependencies should need to be installed versus
decap-cms-app@3.11.0Applicable Versions:
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?