Skip to content

Weird warnings about duplicate declarations #2358

@Nokel81

Description

@Nokel81

Search terms

multiple declarations

Expected Behavior

No warning produced

Actual Behavior

[warning] menuShouldBlockScroll has multiple declarations with a comment. An arbitrary comment will be used.
[info] The comments for name are declared at:
  /some-repo/node_modules/react-select/dist/declarations/src/Select.d.ts:155
  /some-repo/node_modules/react-select/dist/declarations/src/Select.d.ts:155

Steps to reproduce the bug

config:

{
  "readme": "../../docs/typedoc-readme.md.tpl",
  "name": "my-package-name",
  "out": "../../docs/api",
  "excludePrivate": true,
  "entryPointStrategy": "expand",
  "excludeExternals": false,
  "entryPoints": [
    "src/api.ts",
  ],
  "disableSources": true,
  "plugin": [
    "typedoc-plugin-markdown"
  ]
}

current-level tsconfig

{
  "extends": "../../tsconfig.json",
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "*": [
        "node_modules/*",
        "types/*"
      ]
    },
    "plugins": [
      {
        "name": "typescript-plugin-css-modules",
        "options": {
          "namedExports": false
        }
      }
    ]
  },
  "include": [
    "src/**/*"
  ]
}

top level tsconfig

"compilerOptions": {
    "baseUrl": ".",
    "jsx": "react",
    "target": "ES2019",
    "module": "ES2022",
    "lib": [
      "ESNext",
      "DOM",
      "DOM.Iterable"
    ],
    "moduleResolution": "Node",
    "sourceMap": true,
    "strict": true,
    "noImplicitAny": true,
    "noUnusedLocals": true,
    "noImplicitReturns": true,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "isolatedModules": true,
    "skipLibCheck": true,
    "allowJs": false,
    "esModuleInterop": true,
    "importsNotUsedAsValues": "error",
    "traceResolution": false,
    "resolveJsonModule": true,
    "useDefineForClassFields": true,
  },
  "ts-node": {
    "transpileOnly": true,
    "compilerOptions": {
      "module": "CommonJS"
    }
  },
  "exclude": [
    "node_modules",
  ]
}

Environment

  • Typedoc version: 0.24.8
  • TypeScript version: 4.9.5
  • Node.js version: 18.15.3
  • OS: macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproductionNeeds a minimal reproducible case - https://gist.github.com/Rich-Harris/88c5fc2ac6dc941b22e7996af05d

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions