-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Basic Usage example from documentation not working: preview.js not found #777
Comments
same here. |
Gettings storybook to run is an absolute nightmare. None of the documentations is up to date and a mix of tutorials + installer scripts just install a random clusterfuck of incompatibilities. both this repo documentation, examples and all official storybook nuxt examples or install-helpers are not working. Try this: Here you find a running set of dependencies that work (currently!) for Nuxt + Storybook:
Make sure to be careful when updating any dependencies because storybook likely stops working on the smallest minor update |
I very much understand the frustration. In fact, I myself are not able to use this module in one of my projects (to enable this was actually one of my motivation helping with the maintenance of the module). I have a few PR upstream in the storybook repo that improve various aspects of the setup. Let's hope they get merged soon. @exophunk Thanks for creating a working example. Could you perhaps add the additional steps to the documentation? That would be great! |
@chakAs3 could you please create a new release? There are a few improvements in the current version that would be great to get out. Thanks! |
Hi @tobiasdiez, I just published a new release, but I encountered a strange issue when running
it ran:
I had to manually run the script in the terminal:
|
Thanks for the new release @chakAs3! The pnpm issue sounds very strange. Maybe pnpm automatically invokes all commands with the suffix |
Hey there! Despite trying both the nightly and the latest release, I'm not able to make storybook work. I followed the instructions and informations available here, but without being lucky enough. Here is a little bit of context:
I end up with ERROR (node:3516) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension. 11:54:28 AM
(Use node --trace-warnings ... to show where the warning was created)
ERROR Storybook failed to load the following preset: @storybook-vue/nuxt/preset. |
@kogratte i think there is an issue with the package manager used .. i recommend using pnpm |
@kogratte i forked your repo with some adjustments check it out https://stackblitz.com/~/github.com/exophunk/nuxt-storybook-showcase |
Will look! Thanks :) |
Environment
Reproduction
https://stackblitz.com/github/nuxt-modules/storybook/tree/main/examples/starter?file=components%2FMyNuxtWelcome.stories.js&embed=1
Describe the bug
I've tried to set up this module for the last 2 days on a blank project and it simply will not start. Been running into various issues (several reported here), but can't seem to crack it and actually get any of the stories to render. Then I realised even the examples in the documentation are not actually starting up (stuck loading): https://storybook.nuxtjs.org/examples/basic
There seem to be some dependency issues as per the terminal
I've been trying various different combinations of the dependencies but they all lead to different issues. I'd really appreciate if someone could just post a recent working example so I could just fork off of that.
Additional context
No response
The text was updated successfully, but these errors were encountered: