Comments (5)
This integrator is loading all nuxt plugins in the main.js
. But there is no possibility for the user to filter or add new plugins.
from storybook.
Hey @farnabaz ! That does seem to indeed load the nuxt modules plugins, but doesn't make them available in the Storybook scope. For example, if I have the @nuxt/vuetify
module and wrap <v-app>
around my stories, Storybook doesn't recognize that element making everything inside the component break. This currently only works if I add <v-app>
inside the component itself and that doesn't seem reasonable to have
from storybook.
That does seem to indeed load the nuxt modules plugins, but doesn't make them available.
Actually, nuxt modules are loaded by storybook runtime and are available in the Storybook. But for sure Storybook does not support all of the Nuxt features.
For example, if I have the
@nuxt/vuetify
module and wrap<v-app>
around my stories, Storybook doesn't recognize that element making everything inside the component break.
<v-app>
does not provide by @nuxt/vuetify
and in a nuxt project, you have to put this tag inside your pages or simply in your layouts. Inside the storybook, pages and layouts do not render and these forces to wrap your stories with <v-app>
.
from storybook.
v-app
doesn't get provided by the nuxt module itself, but it's provided by the Vuetify dependency in it. And it's possible to have vuetify inside the Storybook scope. I already tried it in a simple Storybook app (not using this module) where vuetify would get added inside Storybook via a global decorator where v-app
then became available to use in stories
from storybook.
Is there a recommended approach on how to get font-awesome and nuxt storybook working together with tailwindcss? I'm looking for an example repo but don't seem to find this anywhere in the documentation.
from storybook.
Related Issues (20)
- Not working with fresh layer template HOT 2
- dev serve will fail when enable `typecheck` in `nuxt.config` HOT 1
- Cannot use Composable HOT 1
- Use latest deps. HOT 1
- Error after install don't find @vitejs/plugin-vue. HOT 4
- Storybook disable nuxt ssr
- "Failed to fetch dynamically imported module" when component emits an event with 2 or more arguments HOT 4
- "Neither (...).vue nor (...).js nor ... could be found in (...)" when rendering component HOT 1
- [8.0.0]Cannot read properties of undefined (reading '__STORYBOOK__') HOT 12
- At least one <template> or <script> is required in a single file component. HOT 1
- Separate dev and storybook server? HOT 2
- Netlify PR reviews are not working
- Publish nightly builds HOT 1
- No optional chaining when accessing import.meta.env.__STORYBOOK__ in npm dist HOT 1
- Missing types HOT 1
- Error: Cannot read properties of undefined (reading '__STORYBOOK__') HOT 1
- Cannot start nuxt: Cannot read properties of undefined (reading '__STORYBOOK__') HOT 1
- Static build
- Latest version Broken HOT 2
- Story executing script from layouts/default.vue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storybook.