Skip to content

[Bug]: @storybook/angular@6.5.16 is incompatible with angular 15? #21336

@ruslanss

Description

@ruslanss

Describe the bug

Hello, trying to use the currently latest release v6.5.16 with Angular 15.2.0 and seeing this error:

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @angular-devkit/build-angular@14.2.6
npm ERR! Found: @angular/compiler-cli@15.2.0
npm ERR! node_modules/@angular/compiler-cli
npm ERR!   dev @angular/compiler-cli@"15.2.0" from the root project
npm ERR!   peer @angular/compiler-cli@">=6.0.0" from @storybook/angular@6.5.16
npm ERR!   node_modules/@storybook/angular
npm ERR!     dev @storybook/angular@"^6.5.12" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/compiler-cli@"^14.0.0" from @angular-devkit/build-angular@14.2.6
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR!   peer @angular-devkit/build-angular@">=0.8.9 || >= 12.0.0" from @storybook/angular@6.5.16
npm ERR!   node_modules/@storybook/angular
npm ERR!     dev @storybook/angular@"^6.5.12" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @angular/compiler-cli@14.2.12
npm ERR! node_modules/@angular/compiler-cli
npm ERR!   peer @angular/compiler-cli@"^14.0.0" from @angular-devkit/build-angular@14.2.6
npm ERR!   node_modules/@angular-devkit/build-angular
npm ERR!     peer @angular-devkit/build-angular@">=0.8.9 || >= 12.0.0" from @storybook/angular@6.5.16
npm ERR!     node_modules/@storybook/angular
npm ERR!       dev @storybook/angular@"^6.5.12" from the root project

am I right in assuming @storybook/angular@6.5.16 is incompatible with angular 15? are there any workarounds?

To Reproduce

No response

System

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions