Skip to content

Installing the latest Blocknote version 0.52.0 causes my application to break #2901

Description

@kulkish

What’s broken?

After upgrading from 0.51.4 to 0.52.0, my application fails at runtime with the following error:

Image

Stack trace:

Uncaught (in promise) Error: Could not resolve "@y/prosemirror" imported by "@blocknote/core". Is it installed?
    at chunk-C7GK7WMX.js?v=371df40f:36155:7
(anonymous) @ chunk-C7GK7WMX.js?v=371df40f:36155
Image
throw new Error(`Could not resolve "@y/prosemirror" imported by "@blocknote/core". Is it installed?`);

The application uses only the basic editor setup:

import { useCreateBlockNote } from "@blocknote/react";
import { BlockNoteView } from "@blocknote/mantine";

export default function FreeTextEditor() {
  const editor = useCreateBlockNote();

  return <BlockNoteView editor={editor} />;
}

Installed versions:

@blocknote/core@0.52.0
@blocknote/react@0.52.0
@blocknote/mantine@0.52.0

I am not using any collaboration or Yjs-related features directly.

Note

Downgrading back to 0.51.4 resolves the issue.

What did you expect to happen?

I expected BlockNote 0.52.0 to work with the default editor setup without requiring any additional Yjs-related dependencies. Upgrading from 0.51.4 to 0.52.0 should not introduce runtime errors when using only @blocknote/core, @blocknote/react, and @blocknote/mantine.

Steps to reproduce

No response

BlockNote version

0.52.0

Environment

Mac OS

Additional context

No response

Contribution

  • I'd be interested in contributing a fix for this issue

Sponsor

  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIssue has not yet been reviewed or classified by maintainers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions