Open faxinwang opened 4 years ago
Please reload the packages. If still not work, please leave a code sandbox.
I removed element-tiptap and yarn add element-tiptap
again, the code remain the same, but this time I got :
mounted hook: "TypeError: Cannot read property 'options' of undefined"
found in
---> <O>
<RtfEditor> at
I'm trying to read and run the source code, but got stucked by the installation of windows-build-tools. I'm still trying to install it.
Could you please leave a code sandbox for this ?
You can try to remove node_modules, remove yarn.lock, and run yarn install. It helped me.
I tried @isv9 's suggestion but still got the same error:
TypeError: Cannot read property 'options' of undefined
at VueComponent.o.getTitleExtension (element-tiptap.esm.js?4ccc:20)
at VueComponent.o.initPlaceholderExtension (element-tiptap.esm.js?4ccc:20)
at VueComponent.o.generateExtensions (element-tiptap.esm.js?4ccc:20)
at VueComponent.o.mounted (element-tiptap.esm.js?4ccc:20)
at invokeWithErrorHandling (vue.runtime.esm.js?2b0e:1854)
at callHook (vue.runtime.esm.js?2b0e:4219)
at Object.insert (vue.runtime.esm.js?2b0e:3139)
at invokeInsertHook (vue.runtime.esm.js?2b0e:6346)
at VueComponent.patch [as __patch__] (vue.runtime.esm.js?2b0e:6565)
at VueComponent.Vue._update (vue.runtime.esm.js?2b0e:3948)
@Leecason I'm sorry, but I don't know how to leave a sandbox.
It seems that the Doc
extension not found in this code, do you add new Doc()
to the extensions
?
Yes, you can find it in the code above.
Would you please run the following code to see the output in console:
const doc = new Doc();
console.log(doc.name);
the output is doc
, is there any problem with Doc
plugin?
The output is right, I'm confused, too.😰
Would you please check your gmail. I have sent you a message and want to add you as my qq friend.
I'm having this issue as well.
Except when I enter that console input I get Doc is undefined
I instantiate Doc under extensions though...
I instantiate Doc under extensions though...
Could you create a code sandbox for this problem?
Same issue here:
TypeError: Cannot read property 'options' of undefined
at VueComponent.value (element-tiptap.esm.js:20)
at VueComponent.value (element-tiptap.esm.js:20)
at VueComponent.value (element-tiptap.esm.js:20)
at VueComponent.value (element-tiptap.esm.js:20)
at invokeWithErrorHandling (vue.esm.js:1863)
at callHook (vue.esm.js:4228)
at Object.insert (vue.esm.js:3148)
at invokeInsertHook (vue.esm.js:6357)
at Vue.patch [as __patch__] (vue.esm.js:6576)
at Vue._update (vue.esm.js:3954)
does someone encountered this problem,
this
RtfEditor.vue
is:I'm using: