Skip to content

Conversation

BobbieGoede
Copy link
Member

@BobbieGoede BobbieGoede commented Jul 14, 2025

🔗 Linked issue

📚 Description

With nuxt/nuxt#32601 merged, the related issue will be resolved for projects using nuxt 4.

This will also improve/add support for the directory structure in nuxt 4 as the .storybook directory is outside the app/server directories and needs to be added manually by this module.

If we also want this resolved for projects using nuxt 3, the PR will either need to be backported (ideal) or we could use my package nuxt-module-utils (I have not done so in this PR, I don't want to be pushy with my own packages 😂).
(this is not relevant since the separated tsconfig structure is nuxt 4 only)

Copy link

netlify bot commented Jul 14, 2025

👷 Deploy request for nuxt-storybook pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 56e9b92

@tobiasdiez
Copy link
Collaborator

The hoist shouldn't be necessary anymore (was actually more a mistake in the export declaration of the module), see #923.

Does the ts fix needs to be safe-guarded by a nuxt version check?

@BobbieGoede
Copy link
Member Author

The hoist shouldn't be necessary anymore (was actually more a mistake in the export declaration of the module), see #923.

Okay I have removed the hoist entry.

Does the ts fix needs to be safe-guarded by a nuxt version check?

No, this will add a ../.storybook/**/* entry (depending on project structure) to tsconfig's include, in older versions of nuxt this entry would be redundant (but not problematic) as the include array contains a ../**/* entry.

@tobiasdiez tobiasdiez changed the title fix: hoist dependency and include config dir in tsconfig fix: include config dir in tsconfig Jul 17, 2025
@tobiasdiez tobiasdiez merged commit 11c1d1d into nuxt-modules:main Jul 17, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants