F
Filament14mo ago
Connor

RichEditor showing "undefined" in view mode.

So I have a RichEditor form component and when looking at a resource in view, it shows as undefined, however displays regularly if editing.
Forms\Components\RichEditor::make('body')
->required()
->columnSpanFull(),
Forms\Components\RichEditor::make('body')
->required()
->columnSpanFull(),
Not quite sure what specifically is causing this difference, if anyone could help with this It would be great.
No description
No description
Solution:
Yes
Jump to solution
8 Replies
LeandroFerreira
LeandroFerreira14mo ago
What is the Filament version on the dashboard page?
Connor
ConnorOP14mo ago
v3.0.0.0
LeandroFerreira
LeandroFerreira14mo ago
You should update Do you have ^3.0 in the composer.json?
Connor
ConnorOP14mo ago
My composer.json has this configuration
"filament/filament": "3.0-stable",
"filament/forms": "3.0-stable",
"filament/notifications": "3.0-stable",
"filament/widgets": "3.0-stable",
"filament/filament": "3.0-stable",
"filament/forms": "3.0-stable",
"filament/notifications": "3.0-stable",
"filament/widgets": "3.0-stable",
I was unaware that It was set to this version specifically. Would you recommend changing to ^3.0?
LeandroFerreira
LeandroFerreira14mo ago
Yes, and run composer update
Connor
ConnorOP14mo ago
Ok thanks for the help. I imagine I would do the same for each of the packages, forms, notifications etc?
Solution
LeandroFerreira
LeandroFerreira14mo ago
Yes
Connor
ConnorOP14mo ago
That did the trick, thanks again!
Want results from more Discord servers?
Add your server