Closed GuillaumeUnice closed 1 year ago
Do you a have a reproduction repo you can share? If not, can you create one? See how to create a repro. We prioritize issues with reproductions over those without. Thank you! 🙏
@valentinpalkovic @sheriffMoose does this look familiar to either of you?
No, it doesn't. A reproduction would be fantastic!
Hi,
Ok thanks for the return, I will supply as soon as possible but before I try to clean it to have the minimum viable.
I was receiving the same error, I fixed it by renaming my browserlist file from browserlist
to .browserslistrc
.
Explanation
The point of failure within storybook/angular was this line in angular-cli-webpack.js
where "@angular-devkit/build-angular/src/utils/webpack-browser-config" is imported.
Following the rabbit hole...the imported angular-devkit script fails when require('browserlist');
is called.
I noticed the working storybook reproduction uses a .browserlistrc
file whereas my project was using a browserlist
file, according to the readme both are valid, but I couldn't see any other differences so I changed the name and everything was well in the world once again.
I still don't know what the actual issue is
Can anyone tell where this issue comes from exactly? I would say it's browserlist butthe config file hasn't caused any issues until angular/storybook was upgraded. The import path @angular-devkit/build-angular/src/utils/webpack-browser-config seems dodgy to me, why is angular/storybook requiring this nested source code?
Hi there! Thank you for opening this issue, but it has been marked as stale
because we need more information to move forward. Could you please provide us with the requested reproduction or additional information that could help us better understand the problem? We'd love to resolve this issue, but we can't do it without your help!
I'm afraid we need to close this issue for now, since we can't take any action without the requested reproduction or additional information. But please don't hesitate to open a new issue if the problem persists – we're always happy to help. Thanks so much for your understanding.
Describe the bug
I can't install storybook v7 on angular project
ng run angular:storybook
To Reproduce
upgrade from ng13 to ng14 npx storybook@next init ng run my-project:storybook
System
Additional context
here is the angular.json