You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create story with combined component, but got this error:
"Type H1HeadingComponent is part of the declarations of 2 modules: AppModule and StorybookModule! Please consider moving H1HeadingComponent to a higher module that imports AppModule and StorybookModule. You can also create a new NgModule that exports and includes H1HeadingComponent then import that NgModule in AppModule and StorybookModule."
I do not have any other modules, except AppModule.
To Reproduce
I'm using Angular14 and get this error, trying with any angular version choice:
npx -p @angular/cli@13.1.x ng new angular14 --routing=true --minimal=true --style=scss --skipInstall=true --strict Error: This command is not available when running the Angular CLI inside a workspace. An error occurred while executing: npx -p @angular/cli@13.1.x ng new angular14 --routing=true --minimal=true --style=scss --skipInstall=true --strict 🚨 Bootstrapping angular13 failed 🚨 Failed to create repro Error: Error: command exited with code: 1: at repro (/Users/jurijsbelozjorovs/.npm/_npx/eebb2d3a7d26a7f1/node_modules/@storybook/cli/dist/cjs/repro.js:172:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Describe the bug
I'm trying to create story with combined component, but got this error:
"Type H1HeadingComponent is part of the declarations of 2 modules: AppModule and StorybookModule! Please consider moving H1HeadingComponent to a higher module that imports AppModule and StorybookModule. You can also create a new NgModule that exports and includes H1HeadingComponent then import that NgModule in AppModule and StorybookModule."
I do not have any other modules, except AppModule.
To Reproduce
I'm using Angular14 and get this error, trying with any angular version choice:
npx -p @angular/cli@13.1.x ng new angular14 --routing=true --minimal=true --style=scss --skipInstall=true --strict Error: This command is not available when running the Angular CLI inside a workspace. An error occurred while executing:
npx -p @angular/cli@13.1.x ng new angular14 --routing=true --minimal=true --style=scss --skipInstall=true --strict🚨 Bootstrapping angular13 failed 🚨 Failed to create repro Error: Error: command exited with code: 1: at repro (/Users/jurijsbelozjorovs/.npm/_npx/eebb2d3a7d26a7f1/node_modules/@storybook/cli/dist/cjs/repro.js:172:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
System
System:
OS: macOS 12.6
CPU: (10) arm64 Apple M1 Pro
Binaries:
Node: 18.7.0 - ~/.nvm/versions/node/v18.7.0/bin/node
npm: 8.15.0 - ~/.nvm/versions/node/v18.7.0/bin/npm
Browsers:
Chrome: 105.0.5195.125
Firefox: 105.0.1
Safari: 15.6.1
npmPackages:
@storybook/addon-actions: ^6.5.12 => 6.5.12
@storybook/addon-essentials: ^6.5.12 => 6.5.12
@storybook/addon-interactions: ^6.5.12 => 6.5.12
@storybook/addon-links: ^6.5.12 => 6.5.12
@storybook/angular: ^6.5.12 => 6.5.12
@storybook/builder-webpack5: ^6.5.12 => 6.5.12
@storybook/manager-webpack5: ^6.5.12 => 6.5.12
@storybook/testing-library: ^0.0.13 => 0.0.13
Additional context
...story.ts
app.module.ts
The text was updated successfully, but these errors were encountered: