Skip to content

Strange type issue #1015

@johnf

Description

@johnf

Describe the bug

When type checking with tsc I get an error in this module

Expected behavior

No type issues

Current behavior

I see the following type error

node_modules/docusaurus-plugin-openapi-docs/src/types.ts:8:32 - error TS2307: Cannot find module '@docusaurus/plugin-content-docs/src/sidebars/types' or its corresponding type declarations.

8 import { SidebarItemDoc } from "@docusaurus/plugin-content-docs/src/sidebars/types";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/docusaurus-plugin-openapi-docs/src/types.ts:24:8 - error TS2307: Cannot find module '@docusaurus/plugin-content-docs-types' or its corresponding type declarations.

24 } from "@docusaurus/plugin-content-docs-types";
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 2 errors in the same file, starting at: node_modules/docusaurus-plugin-openapi-docs/src/types.ts:8

Possible solution

Steps to reproduce

  1. Check out this repository
  2. cd demo
  3. yarn
  4. yarn run tsc

You will see other errors but also the ones above.

Context

I like clean types :)

Your Environment

  • Version used: 4.2.0
  • Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3): node 22
  • Operating System and version (desktop or mobile): Ubuntu
  • Link to your project: https://github.com/johnf/ro-crate-api/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions