-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
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
Failed to load the Angular CLI config. (Angular 8/Storybook 5.3.0-rc.8) #9319
Comments
The same happens in the reproduction repo of this issue #9332 (comment) Both projects are library only projects and have no app. I'll look into that |
Same issue here. Minimal reproduction:
|
@cmurczek I just created a PR that should fix this Angular does not seem to handle undefined angular.json properties such as I added default values for them in https://github.com/storybookjs/storybook/pull/9390/files#diff-85c97608923e0cbbc684961efd172cacR111 You can try this in your angular.json
|
@kroeder Fixed it for me, good job! |
@kroeder setting these in angular.json does resolve the warning when building storybook. It however also breaks Also my webpack.config is broken in regards to handling styles after adding the keys in angular.json. One of the issues I see is that the include paths, wich are originally set in ng-package.json and are added to webpack in my config, no longer work. This might be a different (follow up?) issue though. |
@cmurczek thanks for mentioning this. The mentioned properties are set within storybook for a function call we do in Let me know if I miss something! |
w00t!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.3.3 containing PR #9390 that references this issue. Upgrade today to try it out! |
Describe the bug
I'm writing a library created with the Angular CLI (8.3.20). When I run storybook, I get the Failed to load the Angular CLI config. warning. I found #9206 dealing with a similar problem, but the suggested workaround did not fix the issue. I'd assume it's due to the fact that there is no app, just the lib.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Storybook should be able to load the Angular CLI config
System:
Environment Info:
System:
OS: Windows 10 10.0.18363
CPU: (4) x64 Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
Binaries:
Node: 12.3.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.21.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: 44.18362.449.0
Additional context
the warning
The text was updated successfully, but these errors were encountered: