Open miclgael opened 1 year ago
Update: another issue with this is that app.config.ts
also needs to be duplicated for this module to work.
PS - I'd be happy to make a PR if I could have a little guidance on where in the code I might work on it.
// place in root dir
import config from './src/app.config'
import { defineAppConfig } from 'nuxt/dist/app/nuxt.js'
export default defineAppConfig(config)
Hi and thanks for your work so far on this plug-in.
Problem
I keep my core nuxt directories in a
src
folder in the root of my projects, using thesrcDir
option in NuxtConfig.To get
storybook-addon-nuxt
to work with my setup, I need to include acomponents
folder in the root, with a dummy component. I can get by with this work-around, but it would be great if auto-imports worked with this configuration.Docs
https://nuxt.com/docs/api/configuration/nuxt-config#srcdir
Screenshot
Workaround