Skip to content

Slash menu style is distorted on Next.js project #670

@i-am-chitti

Description

@i-am-chitti

Describe the bug
I used this library with a fresh Next.js @ 14.1.4 release. On loading the editor as guided here- https://www.blocknotejs.org/docs/advanced/nextjs, the slash menu style is broken -
image

Also, noticed that this style is broken -
image

To Reproduce

  1. Create a next js project -
npx create-next-app@latest blocknote-next-js --typescript --eslint
  1. cd blocknote-next-js
  2. Add blocknote lib - npm install @blocknote/core @blocknote/react
  3. Follow the guide - https://www.blocknotejs.org/docs/advanced/nextjs and add the Editor
  4. Start development server
  5. Press / and you'll get the distorted styling

Misc

  • Node version: 18.18.0
  • Package manager: 9.8.1
  • Browser: Google Chrome - Version 123.0.6312.59 (Official Build) (arm64)

Note
I'm using the exact same code as suggested in the doc. Have already imported the "react/style.css"

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingprio:highHigh priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions