Closed DarkDynamite closed 4 months ago
The issue might be related to recent changes in dependencies or configurations. Please try the following steps:
Check for Angular JSON issues: Ensure your angular.json
file is correctly configured. If you are using multiple projects, refer to /code/lib/cli/src/automigrate/fixes/angular-builders-multiproject.ts
.
Run Storybook Automigrate: This can help fix configuration issues. Use the command:
npx storybook automigrate
Check for Missing Framework Field: Ensure your Storybook config has a framework
field. Refer to /code/core/src/server-errors.ts
for MissingFrameworkFieldError
.
Upgrade Storybook: If the issue persists, try upgrading Storybook to the latest version:
npx storybook@latest upgrade
Refer to the upgrade documentation for more details.
/code/lib/cli/src/automigrate/fixes/angular-builders.ts /code/lib/cli/src/automigrate/fixes/angular-builders-multiproject.ts /code/frameworks/angular/src/builders/build-storybook/index.spec.ts /code/core/src/server-errors.ts /docs/_snippets/upgrade-command-specific-version.md /docs/_snippets/storybook-upgrade-to-prior-major.md /docs/_snippets/storybook-init-v7.md
Hey @DarkDynamite we just released a new version of Storybook, but that's not the issue. The problem you reported is coming from how the peer dependency range of storybook-zeplin
addon is set (based on your log file):
Could not resolve dependency:
peer storybook@"^8.2.0" from @storybook/components@8.2.0
node_modules/@storybook/components
peer @storybook/components@">=5.0.0" from storybook-zeplin@2.0.2
node_modules/storybook-zeplin
dev storybook-zeplin@"2.0.2" from the root project
You probably cleared your lockfile and that caused the issue. To fix it, either install @storybook/components@^7.6.10
in your project, or add a package resolution to that version.
Thanks for your help.
Adding the following packages to devDependencies did the trick:
"@storybook/components": "7.6.10",
"@storybook/theming": "7.6.10",
Describe the bug
Since one hour our Storybook in version 7.6.10 is not buildable anymore.
Have you some issues with your dependencies?
Logs:
2024-07-10T08_57_45_205Z-eresolve-report.txt 2024-07-10T08_57_45_205Z-debug-0.log
Reproduction link
https://storybook.new
Reproduction steps
Reproduction with Azure Pipeline:
Reproduction locally:
npm install
System
Additional context
No response