-
-
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
[Bug]: Storybook couldn't evaluate your #30195
[Bug]: Storybook couldn't evaluate your #30195
Comments
** Disclaimer** This information might be inaccurate, due to it being generated automatically import type { StorybookConfig } from '@storybook/nextjs';
const config: StorybookConfig = {
framework: '@storybook/nextjs',
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-onboarding',
'@storybook/addon-interactions',
],
};
export default config; Ensure you have
|
I switched to using "@storybook/nextjs": "8.4.1" and the problem was solved |
I was running into this same problem and it has to do with esbuild. esbuild released a new version so updating the lock files should fix it. |
@ZhuravelAndreyVladimirov Does updating your lock file fix the issue (updating the transitive dependency |
I have this issue after deleting my lock file and reinstalling |
I had similar issues, with the latest storybook and esbuild, also make sure you're using |
For me, I solved the problem I was having by clearing the npx cache I was running into this issue while trying to run an upgrade command, which I spotted was using the npx cache. I'd seen in other threads that there was an issue with ESbuild (which had been fixed by the time I was reading) but I wondered if perhaps my npx cache still had that version. Not saying that was the exact issue, but after clearing the cache - I was able to proceed. |
I got the same error code when upgrading from Storybook 8.4.7 to 8.5.0, although maybe for a different reason:
My fix: diff --git a/images/web/.storybook/main.ts b/images/web/.storybook/main.ts
index 7eb6921..44d8c39 100644
--- a/images/web/.storybook/main.ts
+++ b/images/web/.storybook/main.ts
@@ -1,4 +1,4 @@
-import { StorybookConfig } from '@storybook/react-vite';
+import type { StorybookConfig } from '@storybook/react-vite';
import { mergeConfig } from 'vite';
const config: StorybookConfig = { |
Describe the bug
when I try to run it gives an error:
I use next js version 14
I found answers for Vite but couldn't find one that suited me
Reproduction link
https://stackblitz.com/edit/github-p7lfsqcw?file=.storybook%2Fmain.ts,.storybook%2Fpreview.ts&preset=node
Reproduction steps
No response
System
Additional context
No response
The text was updated successfully, but these errors were encountered: