Closed cmbirk closed 1 year ago
I have the same error.
Deleting yarn.lock and running yarn install fixed it for me.
Unfortunately I get the same error when trying that
Which version of yarn are you running? I'm worried it's an issue with yarn berry. There seems to be a lot of incompatibilities with it on other libraries
3.2.1. I upgraded a project from v1 to v3. It was a long process, and I use storybook-vite-builder, so there were like 30+ issues with dependencies.
the repro repo above works for me:
gh repo clone CrossroadsCX/react-data-grid-proto
code react-data-grid-proto
yarn build-storybook
nothing break when building storybook:
I'm having the same issue locally (including for the above repro repo). Interestingly, I do not see the errors when running build-storybook
on a Github Actions host.
Environment Info (local):
System:
OS: macOS 12.4
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Binaries:
Node: 14.18.0 - /private/var/folders/mv/b15pxg914psdh8tq3_5z5tzw0000gp/T/xfs-f0b4d8c2/node
Yarn: 3.2.1 - /private/var/folders/mv/b15pxg914psdh8tq3_5z5tzw0000gp/T/xfs-f0b4d8c2/yarn
npm: 6.14.15 - ~/.nvm/versions/node/v14.18.0/bin/npm
Browsers:
Chrome: 103.0.5060.114
Firefox: 100.0.2
Safari: 15.5
Ah, I was surprised to see Node 14.18.0 in this output. I thought I was using 16.16.0. I set Node to that version and ran build-storybook
again, this time successfully :)
I cloned the reproduction, removed yarn.lock
, performed an install, and storybook built without error. I guess somehow you had a dependency mis-match. Let us know if you're still not able to solve after trying this. Keep in mind you'll need to remove both the yarn.lock and node_modules
folder, or else new dependencies won't be resolved.
Describe the bug I've built a test repo to try out react-data-grid. I've included a link to my public repo in the reproduction steps below. Running
start-storybook
works correctly, but attempting to runbuild-storybook
throws the following error:without much information as to why this might be failing. I'm trying to publish to Chromatic and can't without building the static site files.
To Reproduce
yarn build-storybook
System