Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange type issue #1015

Open
johnf opened this issue Nov 4, 2024 · 2 comments
Open

Strange type issue #1015

johnf opened this issue Nov 4, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@johnf
Copy link

johnf commented Nov 4, 2024

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/
@johnf johnf added the bug Something isn't working label Nov 4, 2024
@paulohenriqgoes
Copy link

I have the same issue using npm

@joelsrubin
Copy link

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants