Open JM-JKISOL opened 1 week ago
I'm having the same error payload@2.30.1 @payloadcms/richtext-slate@1.5.2
Have you tried to strict downgrade to payload@2.30.0
? Looks like 'use client'
directive is introduced in @faceless-ui/modal@2.0.2
which could be the case for the issues, we have something similar happening....
@dbambulaks I can confirm this solves the problem! Thank you very much for your input!
Just as an FYI for devs, the same error occurs in the lexical editor for payload@2.30.1
Description: I am encountering an issue with the RichText editor (@payloadcms/richtext-slate package, version 1.5.2) while using it in a Next.js project. When trying to add a link in the editor, the modal to input the link does not show, and I receive the following error in the browser console:
Uncaught (in promise) TypeError: openModal is not a function
Environment: @payloadcms/richtext-slate: 1.5.2 Next.js: 13.5.2 npm: 10.7.0 Node.js: 20.15.0
Steps to Reproduce:
Expected Behavior: The modal to input the link should appear when attempting to add a link using the RichText Slate editor.
Actual Behavior: The link modal does not appear, and the following error is logged in the console:
Uncaught (in promise) TypeError: openModal is not a function
Additional Information: I am using the RichText Slate editor in a Next.js project. Please let me know if more information is needed or if there's a workaround for this issue.