Closed
Description
Describe the Bug
[TypeError: Cannot read properties of undefined (reading 'state')] {
digest: '1143211231'
}
node_modules/@payloadcms/richtext-lexical/dist/features/textState/feature.server.js:19
state: props.state
^
TypeError: Cannot read properties of undefined (reading 'state')
in order to fix that locally, I push directly to the code (just to test):
export const TextStateFeature = createServerFeature({
feature: ({
props
}) => {
return {
ClientFeature: '@payloadcms/richtext-lexical/client#TextStateFeatureClient',
clientFeatureProps: {
// state: props.state
state: props?.state
}
};
},
key: 'textState'
});
//# sourceMappingURL=feature.server.js.map
now its working.
Link to the code that reproduces this issue
Reproduction Steps
- install latest version (3.39.1)
- import feature text state
- run payload
- then it crases
Which area(s) are affected? (Select all that apply)
plugin: richtext-lexical
Environment Info
payload v3.39.1