Skip to content

Cannot find module '@blocknote/react' warning is VS Code #804

Description

@mengxi-ream

Describe the bug
<what's going wrong!?>

CleanShot 2024-06-05 at 16 15 45@2x

Therefore, I can't use VS Code to quickly jump to the corresponding code snippets. I want to contribute to the BlockNote codebase, and I believe it can greatly enhance my efficiency if I can quickly navigate between sections of code.

I tried to add the following tsconfig.json to the root, but didn't work.

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@blocknote/core": ["packages/core/src"],
      "@blocknote/react": ["packages/react/src"],
      "@blocknote/ariakit": ["packages/ariakit/src"],
      "@blocknote/mantine": ["packages/mantine/src"],
      "@blocknote/shadcn": ["packages/shadcn/src"]
    }
  },
  "include": ["packages/**/*", "playground/**/*"]
}

To Reproduce
<clear steps to reproduce are super helpful! Best is to provide an online sandbox, click to create one>

clone the repo and open it in VS Code. npm install

Misc

  • Node version: 20.9.0
  • Package manager: npm
  • Browser: Chrome
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions