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
Describe the bug
I just started to migrate to SB 6 and I get the deprecation message about hierarchy separators even if I already used '/' as separator. It seems to be caused by using ${obj.attr} in the Meta title: I import the package.json file to insert the version number in the sidebar:
import pkg from '../package.json'
import { Meta } from '@storybook/addon-docs/blocks'
<Meta title={`Docs v${pkg.version}/Changelog`} />
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!
I'm having the same problem, caused by having .s in a story title. I've chosen to do as suggested in #9761 (comment) and use a ․homoglyph (alternative unicode character) instead of the periods. In your case you could do ${pkg.version.replace(/\./g, '․')}
Describe the bug
I just started to migrate to SB 6 and I get the deprecation message about hierarchy separators even if I already used '/' as separator. It seems to be caused by using
${obj.attr}
in the Meta title: I import thepackage.json
file to insert the version number in the sidebar:Probably a too generic regex.
To Reproduce
Steps to reproduce the behavior:
.mdx
file with the example aboveExpected behavior
No deprecation message
System
The text was updated successfully, but these errors were encountered: