You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional context
Basically encountered this issue when using @nuxtjs/storybook which uses a custom configDir (.nuxt-storybook/storybook) that is provided to both buildDev() and buildStatic() (see: @nuxtjs/storybook/src/index.ts#L11-L18). Everything works fine with the dev server but fails when building static due to the above error.
Cheers! Let me know if anything~ Happy to provide a PR if confirmed valid but had trouble understanding the contributing guide~
Awesome! Can you just please highlight me as to which source/target branch should I use? Contributing guide got me confused :/ Will try to hop on Discord~
Describe the bug
buildDev()
andbuildStatic()
don't resolve theconfigDir
option the same way.Basically
buildStatic()
now ignore providedloadOptions.configDir
option.This leads to build failing when using
buildStatic()
with a customconfigDir
provided through theloadOptions
object.buildDev()
configuration resolver: https://github.com/storybookjs/storybook/blob/next/lib/core-server/src/build-dev.ts#L122buildStatic()
configuration resolver: https://github.com/storybookjs/storybook/blob/next/lib/core-server/src/build-static.ts#L110Possible commit responsible for the regression (didn't read anything about that option being deprecated): 9bb89b7#diff-1f7816632a730834f23b99d2d097729e56e2401e30691f72e8a52b1a38b0cedfL259-R237
To Reproduce
n/a
See Additional context below, sorry!
Expected behavior
buildDev()
andbuildStatic()
should resolve theconfigDir
directory consistently.Screenshots
n/a
Code snippets
n/a
System
Additional context
Basically encountered this issue when using @nuxtjs/storybook which uses a custom
configDir
(.nuxt-storybook/storybook
) that is provided to bothbuildDev()
andbuildStatic()
(see: @nuxtjs/storybook/src/index.ts#L11-L18). Everything works fine with the dev server but fails when building static due to the above error.Cheers! Let me know if anything~ Happy to provide a PR if confirmed valid but had trouble understanding the contributing guide~
cc farnabaz
┆Issue is synchronized with this Asana task by Unito
The text was updated successfully, but these errors were encountered: