Repository navigation
Closed
Labels
Description
Overview of the issue
When two angular components (that have stories) share the same TS class name, each story will receive a union of the inputs from both components - even if the component selectors
Operating System, Node.js, npm, compodoc version(s)
Angular configuration, a package.json file in the root folder
"storybook": {
"executor": "@storybook/angular:start-storybook",
"options": {
"configDir": "apps/storybook/.storybook",
"browserTarget": "app:build",
"compodoc": true,
"compodocArgs": [
"--silent",
"--disablePrivate",
"--disableProtected",
"--disableInternal",
"--exportFormat",
"json",
"--output",
"apps/storybook"
],
"port": 6006,
},
"configurations": {
"ci": {
"quiet": false
}
}
}, "@compodoc/compodoc": "^1.1.21",
"@nx/storybook": "^16.7.4",
"@schematics/angular": "^16.2.5",
"@storybook/addon-actions": "^7.4.0",
"@storybook/addon-docs": "^7.4.0",
"@storybook/addon-essentials": "^7.4.0",
"@storybook/addon-interactions": "^7.4.0",
"@storybook/angular": "^7.4.0",
"@storybook/core-server": "^7.4.0",
"@storybook/test-runner": "^0.13.0",
"@storybook/jest": "~0.1.0",
"@storybook/testing-library": "~0.2.0",
"storybook": "^7.4.0",Angular version: ^16.2.5
Compodoc installed globally or locally ?
Locally though npm "@compodoc/compodoc": "^1.1.21"
Motivation for or Use Case
We have a set of UI components that have been deprecated. We now want to create new components, and some of them may just share the same TS class name (e.g. ButtonComponent).
Reproduce the error
- Create two angular components with the same TS class name.
- Give each component an input that don't share the same name.
- Start storybook and observe that both stories have both the inputs
Activity
test(cli): guard duplicate component name inputs