Open USSDlover opened 1 year ago
We got the same issue here. Any hints on how to fix/workaround it without creating a dummy build configuration just for storybook (which I guess is what @USSDlover meant with "Quick fix was to introduce another build configuration for storybook with localize: false.")?
Thanks in advance!
Describe the bug
After adding i18n we will update the
angular.json
by introducing the required locales, and by that the commandng run angular-app:storybook
will failed with this errorTo Reproduce
ng new my-app
ng add @angular/localize
angular.json
and add the required locales to build configuration.npx storybook@latest init
npm run storybook
System
Additional context
Quick fix was to introduce another build configuration for storybook with
localize: false
.Suggested fix would be to just update the init command to copy the development configuration and rename it to something like
storybook
and then use that configuration instead of default one.