-
Notifications
You must be signed in to change notification settings - Fork 129
Fix Storybook WSOD with some dependency updates #903
Conversation
I get an error using npm 6.x:
|
Ah, I just saw your commit removing the reference to knobs. Running again with the latest. |
Just for context, I'm on Node 14 with npm 7. |
OK, thanks. Node 14 with npm 6 here (I think 6 is still the default or at least we should decider whether to drop support for 6). I still get the white screen with the following steps:
Are you running storybook in a sub-project or in the project root? |
I'm running |
For what it's worth, the project is configured to use npm 6.14.9 by default, which we can change if it will fix this issue: |
I don't suppose the npm version difference is the problem here, but if it is, moving up to npm 7 can surely be considered. |
OK, I can confirm that the |
I think replicating similar dependency changes in the other two packages can get them to start too. I could do that over the coming weekend. It's a bit far off so feel free to reassign. |
Relatedly, do you suggest a different architecture for this project, where we can keep the monorepo approach while
That way, we could follow normal packaging workflow while Storybook would serve as a development and documentation environment. We might then be able to deprecate |
It seems like a great idea to not have to manage three separate packages with separate documentations. But I'm unable to wrap my head around how that would work in practice, because Storybook has different setups for Vue and plain HTML. On a pessimistic note, it might either be quite complex to setup or outright not possible. Maybe we can test to see how feasible that is before committing to the approach. |
Sure thing. I opened a separate issue to explore the idea: #905 |
Thanks for testing this PR, and for the really rapid back-and-forth. It was fun! |
Hei @dhruvkb. I really appreciate your help with this issue. I have tried today to follow the same pattern in the For what it's worth, I believe we need to somehow simplify this project. So far, I have proposed a couple of options for discussion:
|
Storybook is undoubted powerful, feature-packed and most relevantly, as a team of just a few people, not-maintained-by-us. Replacing it with a home-grown solution built on top of a barebones VuePress setup seems like a lot of work with the same end-result: a place to see our components in action. @brylie I think a more viable solution would be to
But before moving ahead with any of this, I suppose the first matter of concern is to path the dependencies and get all our Storybooks up again (the purpose of this PR). Let me know what you think. |
@brylie with the above changes, the steps mentioned in the |
@all-contributors please add @dhruvkb for code, mentoring |
I've put up a pull request to add @dhruvkb! 🎉 |
Fixes
Fixes #895
Description
This PR
@storybook/*
packages to the latest versionaddon-knobs
react
to allow resolutionScreenshots
Checklist
Update index.md
).main
ormaster
).visible errors.
Developer Certificate of Origin
Developer Certificate of Origin