diff --git a/composables/tiptap/suggestion.ts b/composables/tiptap/suggestion.ts
index 8ceabfb9..7b8975e7 100644
--- a/composables/tiptap/suggestion.ts
+++ b/composables/tiptap/suggestion.ts
@@ -58,7 +58,8 @@ function createSuggestionRenderer(): SuggestionOptions['render'] {
         })
       },
 
-      onBeforeUpdate(props) {
+      // Use arrow function here because Nuxt will transform it incorrectly as Vue hook causing the build to fail
+      onBeforeUpdate: (props) => {
         component.updateProps({ ...props, isPending: true })
       },