'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 : TypeError: Cannot read properties of undefined (reading 'model') at Proxy.$_setUpEditorEvents

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!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source