-
-
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
addon-storysource not working with Angular #17233
Comments
Hello, I'm having the same issue, could we have some feedback on it ? Regards. |
Hello, I have the same issue |
Same issue here aswell. I have also tried adding @storybook/source-loader and configuring webpack, still no luck?
|
The same issue |
Same issue here, with Angular 12. Also, another odd thing, the source shown in the DocsPage works fine. 🤔 Is that what everyone else is seeing? |
We are also having this issue. |
Had the same problem, updating addon-storysource to 6.4.19 fix it for me. |
I am having the same issue. |
+1 |
Also here |
+1 |
1 similar comment
+1 |
+1 |
+1 |
+1 |
Hi Team, Even after tried the workaround mentioned in https://storybook.js.org/addons/@storybook/addon-storysource. Do we have any other add ons which can be used to check the source code. Thanks. |
Not working with Storybook 6.5.10 and Angular 14 too. |
@shilman Could you please help us here? Even with 6.5.10 we are facing same issue. |
Also ran into this issue in Angular 12 with [email protected]. What I found interesting was that when running But there were some complications, styles didn't load for me (I don't use If I want to have styles working, I need to start/build via script in angular.json architect object & is the approach used in documentation. ...
"scripts": {
"storybook": "start-storybook -p 3000" // Loads story source, but not styles
"ng-storybook": "ng run project:storybook" // Loads styles, but not story source
}
... |
Doesn't work with angular 14 either. After some deeper dive it looks like "storySource" is not available within the state of storybook from where it tries to pull the "locationMap". Tried to fix it but with no luck. |
Same problem, tried several configs and options for the loader.
|
facing the same in angular 16 version. |
I have the same issue |
Same issue: |
+1 Just wondering if a fix is planned for this. Sad that @storybook/addon-storysource doesn't work with Angular. Thanks! |
Same issue |
Same with angular 15... @JijiyaT did you find out a way to show source code ? |
I will try to find some time to finalize #24660 which should fix the issue. |
Describe the bug
addon-storysource not working with angular 13.1 and always display "loading source..."
To Reproduce
npm un -g @angular/cli
npm un -g @storybook/cli
npm i -g @angular/cli
npm i -g @storybook/[email protected] (angular 13.1 support added in alpha15)
ng new test-storybook (with default options)
cd test-storybook
sb init
npm i @storybook/addon-storysource --save-dev
-> update .storybook/main.js file to add "@storybook/addon-storysource" in addons
npm run storybook
open http://localhost:6006/?path=/story/example-button--primary
the "Story" panel show : loading source...
System
Windows npm 6.14.14
The text was updated successfully, but these errors were encountered: