Skip to content

Issue with useContext Error When Using Common React NPM Library with BlockNote Package #1601

Open
@AkashDoke

Description

@AkashDoke

We have developed a common React-based NPM library intended to be used across multiple parent React applications. This library includes reusable components that are shared among our projects.

However, when we import and use this library in a parent app, we encounter a useContext error originating from the latest version of the @blocknote package.

We have attempted to resolve the issue by trying a few older versions of the @blocknote package, but the problem persists.

We would appreciate any guidance or assistance in resolving this issue so that our shared library can be properly integrated without triggering this error.

Steps to Reproduce:

  1. Create a React NPM library with reusable components.
  2. Include the @blocknote package in the library.
  3. Import and use the library in a parent React application.
  4. Observe the useContext error.

Additional Info:

  • React version: [Please insert version]
  • BlockNote versions tried: [List versions you tried]
  • Any relevant code snippets or stack traces can be provided upon request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginvalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions