Storybook with using Injection in angular module
You need to add "emitDecoratorMetadata": true
in compilerOptions
object in .storybook/tsconfig.json
file.
So your .storybook/tsconfig.json
should be like this:
{
"extends": "../tsconfig.app.json",
"compilerOptions": {
"emitDecoratorMetadata": true, <--------- Add this!
...
},
...
}
Then make sure to restart your storybook process.