We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Running npx sb init on a new app created with ng new app fails with error code 1.
npx sb init
ng new app
To Reproduce
Expected behavior Storybook initializes successfully.
Screenshots
Code snippets
> node --version v15.5.1 > ng --version _ _ ____ _ ___ / \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _| / △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | | / ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | | /_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___| |___/ Angular CLI: 11.0.7 Node: 15.5.1 OS: darwin x64 Angular: 11.0.9 ... animations, common, compiler, compiler-cli, core, forms ... platform-browser, platform-browser-dynamic, router Ivy Workspace: Yes Package Version --------------------------------------------------------- @angular-devkit/architect 0.1100.7 @angular-devkit/build-angular 0.1100.7 @angular-devkit/core 11.0.7 @angular-devkit/schematics 11.0.7 @angular/cli 11.0.7 @schematics/angular 11.0.7 @schematics/update 0.1100.7 rxjs 6.6.3 typescript 4.0.5 > ng new angular-eleven-app ... ✔ Packages installed successfully. Successfully initialized git. > cd angular-eleven-app > npx sb init sb init - the simplest way to add a Storybook to your project. • Detecting project type. ✓ npm WARN ERESOLVE overriding peer dependency npm WARN Found: react@17.0.1 npm WARN node_modules/react npm WARN peerOptional react@"^16.8.0 || ^17.0.0" from @storybook/addon-actions@6.1.14 npm WARN node_modules/@storybook/addon-actions npm WARN dev @storybook/addon-actions@"^6.1.14" from the root project npm WARN 1 more (@storybook/addon-essentials) npm WARN 8 more (@storybook/addon-essentials, @storybook/addon-links, ...) npm WARN npm WARN Could not resolve dependency: npm WARN peer react@"^16.8.4" from react-inspector@5.1.0 npm WARN node_modules/react-inspector npm WARN react-inspector@"^5.0.1" from @storybook/addon-actions@6.1.14 npm WARN node_modules/@storybook/addon-actions npm WARN ERESOLVE overriding peer dependency npm WARN Found: react@17.0.1 npm WARN node_modules/react npm WARN peerOptional react@"^16.8.0 || ^17.0.0" from @storybook/addon-actions@6.1.14 npm WARN node_modules/@storybook/addon-actions npm WARN dev @storybook/addon-actions@"^6.1.14" from the root project npm WARN 1 more (@storybook/addon-essentials) npm WARN 8 more (@storybook/addon-essentials, @storybook/addon-links, ...) npm WARN npm WARN Could not resolve dependency: npm WARN peer react@"15.x || 16.x || 16.4.0-alpha.0911da3" from @reach/router@1.3.4 npm WARN node_modules/@reach/router npm WARN @reach/router@"^1.3.3" from @storybook/api@6.1.14 npm WARN node_modules/@storybook/api npm WARN 1 more (@storybook/router) npm WARN ERESOLVE overriding peer dependency npm WARN Found: react-dom@17.0.1 npm WARN node_modules/react-dom npm WARN peerOptional react-dom@"^16.8.0 || ^17.0.0" from @storybook/addon-actions@6.1.14 npm WARN node_modules/@storybook/addon-actions npm WARN dev @storybook/addon-actions@"^6.1.14" from the root project npm WARN 1 more (@storybook/addon-essentials) npm WARN 7 more (@storybook/addon-essentials, @storybook/addon-links, ...) npm WARN npm WARN Could not resolve dependency: npm WARN peer react-dom@"15.x || 16.x || 16.4.0-alpha.0911da3" from @reach/router@1.3.4 npm WARN node_modules/@reach/router npm WARN @reach/router@"^1.3.3" from @storybook/api@6.1.14 npm WARN node_modules/@storybook/api npm WARN 1 more (@storybook/router) npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! Found: react@17.0.1 npm ERR! node_modules/react npm ERR! peerOptional react@"^16.8.0 || ^17.0.0" from @storybook/addon-actions@6.1.14 npm ERR! node_modules/@storybook/addon-actions npm ERR! dev @storybook/addon-actions@"^6.1.14" from the root project npm ERR! @storybook/addon-actions@"6.1.14" from @storybook/addon-essentials@6.1.14 npm ERR! node_modules/@storybook/addon-essentials npm ERR! dev @storybook/addon-essentials@"^6.1.14" from the root project npm ERR! peerOptional react@"^16.8.0 || ^17.0.0" from @storybook/addon-essentials@6.1.14 npm ERR! node_modules/@storybook/addon-essentials npm ERR! dev @storybook/addon-essentials@"^6.1.14" from the root project npm ERR! 7 more (@storybook/addon-links, @storybook/addons, react-dom, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^0.14.0 || ^15.0.0 || ^16.0.0" from create-react-context@0.3.0 npm ERR! node_modules/@reach/router/node_modules/create-react-context npm ERR! create-react-context@"0.3.0" from @reach/router@1.3.4 npm ERR! node_modules/@reach/router npm ERR! @reach/router@"^1.3.3" from @storybook/api@6.1.14 npm ERR! node_modules/@storybook/api npm ERR! @storybook/api@"6.1.14" from @storybook/addon-actions@6.1.14 npm ERR! node_modules/@storybook/addon-actions npm ERR! 2 more (@storybook/addon-essentials, @storybook/addons) npm ERR! 1 more (@storybook/router) npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See /Users/costar/.npm/eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! /Users/costar/.npm/_logs/2021-01-20T16_00_28_569Z-debug.log An error occurred while installing dependencies. npm ERR! code 1 npm ERR! path /Users/costar/personal/angular-eleven-app npm ERR! command failed npm ERR! command sh -c sb init npm ERR! A complete log of this run can be found in: npm ERR! /Users/costar/.npm/_logs/2021-01-20T16_00_28_646Z-debug.log
System
Environment Info: System: OS: macOS 10.15.7 CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Binaries: Node: 15.5.1 - ~/.nvm/versions/node/v15.5.1/bin/node Yarn: 1.22.10 - ~/.nvm/versions/node/v15.5.1/bin/yarn npm: 7.3.0 - ~/.nvm/versions/node/v15.5.1/bin/npm Browsers: Chrome: 87.0.4280.141 Firefox: 84.0.2 Safari: 13.1.3
Additional context
Angular CLI: 11.0.7 node: v15.5.1
The text was updated successfully, but these errors were encountered:
Facing the same issue.
Sorry, something went wrong.
I'm facing the same issue on a fresh React app using CRA.
@nuxtjs/storybook
This appears to be an issue with NPM7. We'll investigate. In the meantime can you use NPM6 as a workaround?
Ok. npm v6 worked.
closing as dupe to #12983
No branches or pull requests
Describe the bug
Running
npx sb init
on a new app created withng new app
fails with error code 1.To Reproduce
ng new app
npx sb init
in the app.Expected behavior
Storybook initializes successfully.
Screenshots
Code snippets
System
Additional context
Angular CLI: 11.0.7
node: v15.5.1
The text was updated successfully, but these errors were encountered: