Open Sun-Mountain opened 1 year ago
I'm getting the same message in a brand new project, also with NextJS. Haven't even created any stories, the sample stories included with storybook won't even load. In my case, I am using npm. Dependencies from my package.json:
{
"dependencies": {
"@types/node": "20.5.3",
"@types/react": "18.2.21",
"@types/react-dom": "18.2.7",
"eslint": "8.47.0",
"eslint-config-next": "13.4.19",
"next": "13.4.19",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "5.1.6"
},
"devDependencies": {
"@storybook/addon-essentials": "^7.3.2",
"@storybook/addon-interactions": "^7.3.2",
"@storybook/addon-links": "^7.3.2",
"@storybook/addon-onboarding": "^1.0.8",
"@storybook/blocks": "^7.3.2",
"@storybook/nextjs": "^7.3.2",
"@storybook/react": "^7.3.2",
"@storybook/testing-library": "^0.2.0",
"@testing-library/jest-dom": "^6.1.0",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.4",
"eslint-plugin-storybook": "^0.6.13",
"jest": "^29.6.3",
"jest-environment-jsdom": "^29.6.3",
"sass": "^1.66.1",
"storybook": "^7.3.2"
}
}
@tanddeus what does your dependencies look like after you rollback?
I am getting the exact same error too. Has anyone managed to fix it?
@Sun-Mountain Sorry for the insanely slow response. Responding anyway now in case its still relevant. That's the strange part. I believe what I did was to uninstall all of the packages related to Storybook and then run:
npx storybook@7.1.0 init
At that point, I was no longer getting the error messages above. However, when I checked the package.json, version 7.3.2 of Storybook had still been installed. I'm new to working with Storybook, so maybe I didn't handle the rollback correctly somehow, but I hope this information is somehow helpful in getting to the bottom of this if no one already has
Describe the bug
My stories were working until they weren't. I can't tell if it was an update or something else.
When I run
pnpm build-storybook
thenpnpm storybook
and I get the following error for all stories:I get a slightly different error in firefox:
The stack of my application:
NextJS, Prisma, Postgres, TypeScript
Package.json
This is one of the stories that is failing:
.storybook/decorator.tsx
.storybook/main.ts
.storybook/preview.ts
To Reproduce
No response
System