Closed ryanpark closed 19 hours ago
This is incorrect useEditor
& EditorProvider are not meant to be used together, use one or the other, not both.
EditorProvider is a thin wrapper around useEditor to automatically set up a React Context for you with the editor instance. useEditor gives you that instance immediately. You did not set immediatelyRender: false on the EditorProvider which is why it is still giving you the error.
Affected Packages
next@15.0.3
Version(s)
@tiptap/core@2.10.0
Bug Description
Hi
First-time user of the Tiptap library—thank you for this great library! I'm trying to implement it in a Next.js 15 application, but every time I click on the menu, the page refreshes, and the following error is thrown. I have also set immediatelyRender: false as recommended.
{ "private": true, "scripts": { "dev": "next dev --turbo", "build": "next build", "start": "next start" }, "dependencies": { "@radix-ui/react-checkbox": "^1.1.1", "@radix-ui/react-dropdown-menu": "^2.1.1", "@radix-ui/react-label": "^2.1.0", "@radix-ui/react-slot": "^1.1.0", "@supabase/ssr": "latest", "@supabase/supabase-js": "latest", "@tiptap/core": "^2.10.0", "@tiptap/extension-color": "^2.10.0", "@tiptap/pm": "^2.10.0", "@tiptap/react": "^2.10.0", "@tiptap/starter-kit": "^2.10.0", "autoprefixer": "10.4.17", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", "geist": "^1.2.1", "lucide-react": "^0.436.0", "next": "latest", "next-themes": "^0.3.0", "prettier": "^3.3.3", "react": "18.2.0", "react-dom": "18.2.0" }, "devDependencies": { "@types/node": "20.10.6", "@types/react": "18.2.46", "@types/react-dom": "18.2.18", "postcss": "8.4.33", "tailwind-merge": "^2.5.2", "tailwindcss": "3.4.1", "tailwindcss-animate": "^1.0.7", "typescript": "5.3.3" } }