Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

PetroGromovo's avatar

I got error Cannot read properties of undefined installing ckeditor5 into Inertiajs 3/vuejs 3 app

In laravel 9/Inertiajs 3/vuejs 3 app I add ckeditor5 (with Composition API) reading https://ckeditor.com/docs/ckeditor5/latest/installation/getting-started/frameworks/vuejs-v3.html with code :

   <ckeditor
       :editor="editor"
        v-model="editorData"
       :config="editorConfig"
   ></ckeditor>


   ...
        let editorData = ref(' editorData init text')
        let editor = ref(ClassicEditor)
        let editorConfig = ref({})

I have error :

ckeditor.js?fbec:5 TypeError: Cannot read properties of undefined (reading 'model')
   at Proxy.$_setUpEditorEvents (ckeditor.js?fbec:5:4617)
   at eval (ckeditor.js?fbec:5:4054)

Searching in net I found branch : https://stackoverflow.com/questions/71175717/typeerror-cannot-read-properties-of-undefined-reading-model-at-proxy-setu

I upgrated vuejs to the latest version :

  $ npm -v
   6.14.15
   $ node -v
   v14.18.3

npm list vue
/ProjectPath/
├── [email protected] 
└─┬ [email protected]
 └─┬ [email protected]
   └── [email protected]  deduped

What I see in debugging vue : https://prnt.sc/vrlktjNrlNIM but I still have the same error

Any ideas ?

Thanks in advance!

0 likes
1 reply

Please or to participate in this conversation.