Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Storybook is giving "Can't resolve all parameters for AppComponent" error in angular library

Storybook is giving "Can't resolve all parameters for AppComponent" with angular 8 library setup

I have already tried adding "import 'core-js/es7/reflect'" in test.ts

Steps to reproduce:

  1. ng new demo --createApplication=false
  2. ng g library demo -p d
  3. npx -p @storybook/cli sb init
  4. npm run storybook

getting "Can't resolve all parameters for AppComponent" in browser console.

like image 485
Shubham Aggarwal Avatar asked Mar 04 '23 14:03

Shubham Aggarwal


1 Answers

Try downgrading your storybook dependencies 5.1.9 worked for me.

There is probably a bug in @storybook/angular 5.1.10

like image 141
Arthur Avatar answered Apr 26 '23 21:04

Arthur