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
$ yarn sb-rn-get-stories
...
/Users/stephen.collings/workspace/native/node_modules/@storybook/react-native/node_modules/minimatch/minimatch.js:275
throw new TypeError('invalid pattern')
^
TypeError: invalid pattern
at assertValidPattern (/Users/stephen.collings/workspace/native/node_modules/@storybook/react-native/node_modules/minimatch/minimatch.js:275:11)
at new Minimatch (/Users/stephen.collings/workspace/native/node_modules/@storybook/react-native/node_modules/minimatch/minimatch.js:133:3)
at setopts (/Users/stephen.collings/workspace/native/node_modules/@storybook/react-native/node_modules/glob/common.js:116:20)
at new GlobSync (/Users/stephen.collings/workspace/native/node_modules/@storybook/react-native/node_modules/glob/sync.js:37:3)
at Function.globSync [as sync] (/Users/stephen.collings/workspace/native/node_modules/@storybook/react-native/node_modules/glob/sync.js:23:10)
at /Users/stephen.collings/workspace/native/node_modules/@storybook/react-native/scripts/loader.js:85:24
...
Expected behavior
Generates a navigation structure like:
@stevoland hey thanks for raising this and offering your help, I would really appreciate that! Yes you are correct, the changes to support title generation were recently added and they are in scripts/loader.js.
Describe the bug
6.0.1-beta.12
supports auto titles (thanks!) but usingtitlePrefix
requires using a configuration object whichsb-rn-get-stories
does not handle.Happy to contribute if you can confirm I'm on the right path:
Assume I could use this API in
scripts/loader.js
to handle configuration object configs and generate astorybook.requires.ts
like:To Reproduce
Expected behavior
Generates a navigation structure like:
Prefix > Component
System:
The text was updated successfully, but these errors were encountered: