HubSpot / cms-react

A repo to expose CMS react examples, React defaults modules, and more to CMS devs
http://github.hubspot.com/cms-react/
Apache License 2.0
18 stars 12 forks source link

Using RichText Component in React Module causing Content Editor to crash #60

Open DennisKraaijeveld opened 1 month ago

DennisKraaijeveld commented 1 month ago

Hi! Whenever I want to add or edit content inside a module which uses the RichtText component it's causing a crash inside the editor

[ERROR] Couldn't find module in widgetInRichText slice(anonymous) @ app.js:1
[ERROR] Couldn't find module in widgetInRichText slice @project.js:1

Is this a known issue? For now it's not useable and will use dangerouslysetinnerhtml

jontallboy commented 4 weeks ago

@DennisKraaijeveld I am unable to reproduce this issue on my side. Can you provide code samples of your rich text module? This will allow me to debug further. Additionally, we have this RichText module example within this repo, if that is helpful for you to compare your code against.

Below is what I am seeing with a RichText react module in the page editor:

react-richtext-example