Skip to content

fix: suppress linkifyjs already-initialized warnings in console#53

Merged
j4rviscmd merged 2 commits intomainfrom
fix/suppress-linkifyjs-warn
Mar 26, 2026
Merged

fix: suppress linkifyjs already-initialized warnings in console#53
j4rviscmd merged 2 commits intomainfrom
fix/suppress-linkifyjs-warn

Conversation

@j4rviscmd
Copy link
Copy Markdown
Owner

@j4rviscmd j4rviscmd commented Mar 26, 2026

Summary

  • Add inline script in index.html to suppress linkifyjs: already initialized console warnings
  • The override runs before Vite pre-bundled chunks capture console.warn, ensuring it applies to the dependency code
  • Workaround for [Bug]: linkify.init not called causing warnings in logs ueberdosis/tiptap#5450@tiptap/extension-link registers custom protocols in onCreate() after linkifyjs has already been initialized by the autolink plugin

Test plan

  • Run npm run tauri dev and verify no linkifyjs: already initialized warnings in DevTools console
  • Verify link autolink still works (type a URL in the editor)

🤖 Generated with Claude Code

j4rviscmd and others added 2 commits March 26, 2026 16:22
Workaround for ueberdosis/tiptap#5450
where @tiptap/extension-link registers custom protocols in onCreate()
after linkifyjs has already been initialized by the autolink plugin.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@j4rviscmd j4rviscmd added the bug Something isn't working label Mar 26, 2026
@j4rviscmd j4rviscmd merged commit fad8eae into main Mar 26, 2026
@j4rviscmd j4rviscmd deleted the fix/suppress-linkifyjs-warn branch March 26, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant