contentful / field-editors

React components and extensions for building Contentful entry editor
https://contentful-field-editors.netlify.app/
MIT License
150 stars 118 forks source link

`@contentful/field-editor-rich-text` depends on `constate` without specifying it in `package.json` #1558

Closed smoogly closed 9 months ago

smoogly commented 10 months ago

Missing dependency on constate in package.json means that npm i @contentful/field-editor-rich-text leads to an unusable install.

Node version v20.10.0 NPM version 10.2.3

Installation structure showcasing the constate install location, which isn't resolvable from @contentful/field-editor-rich-text:

> find node_modules -type d | fgrep constate                                               
node_modules/@contentful/field-editor-reference/node_modules/constate
node_modules/@contentful/field-editor-reference/node_modules/constate/dist
node_modules/@contentful/field-editor-reference/node_modules/constate/dist/ts
node_modules/@contentful/field-editor-reference/node_modules/constate/dist/ts/test
node_modules/@contentful/field-editor-reference/node_modules/constate/dist/ts/src
node_modules/@contentful/field-editor-reference/node_modules/constate/src
z0al commented 9 months ago

Thanks for the report. This was fixed a day ago.