-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev console of main flooded with errors $attrs is readonly
#5392
Comments
nextcloud-libraries/nextcloud-vue#3281 might fix it. |
As far as i can tell we are already using that fix. |
This comment was marked as resolved.
This comment was marked as resolved.
@max-nextcloud Maybe it is actually the viewer that needs the bump? We still use the parent Vue instance from that one iirc. |
finally managed to bisect this: git bisect start first bad commit: [f750a82] feat(editor): Add link view bubble to preview, edit and open links |
I was able to narrow this down to the |
This comment was marked as off-topic.
This comment was marked as off-topic.
Looks like |
I tried to use the same approach with no success: diff --git a/src/extensions/LinkBubblePluginView.js b/src/extensions/LinkBubblePluginView.js
index bddb60f8b..08c8b7145 100644
--- a/src/extensions/LinkBubblePluginView.js
+++ b/src/extensions/LinkBubblePluginView.js
@@ -1,4 +1,5 @@
import { VueRenderer } from '@tiptap/vue-2'
+import Vue from 'vue'
import tippy from 'tippy.js'
import { domHref } from '../helpers/links.js'
import LinkBubbleView from '../components/Link/LinkBubbleView.vue'
@@ -13,8 +14,10 @@ class LinkBubblePluginView {
constructor({ editor, view }) {
this.editor = editor
this.view = view
+ const vue = this.editor.contentComponent?.$options._base ?? Vue
+ const constructor = vue.extend(LinkBubbleView)
- this.component = new VueRenderer(LinkBubbleView, {
+ this.component = new VueRenderer(constructor, {
parent: this.editor.contentComponent,
propsData: {
editor: this.editor,
|
Turns out |
Describe the bug
Current text main branch produces tons of errors in the console.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No errors in the console.
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: