[x] My branch is up-to-date with the Upstream main branch.
[ ] The unit tests pass locally with my changes (if applicable).
[ ] I have added tests that prove my fix is effective or that my feature works (if applicable).
[ ] I have added necessary documentation (if appropriate).
Short description of what this resolves:
Attempting to update the storybook to the latest version.
The storybook application starts but from a syntax error, I think generated by babel:
WARN 🚨 SyntaxError: Unexpected token ':'
SyntaxError: Unexpected token ':'
at eval (<anonymous>)
at getStorySortParameter (./node_modules/@storybook/csf-tools/dist/index.js:32:1817)
at StoryIndexGenerator.getStorySortParameter (./node_modules/@storybook/core-server/dist/index.js:60:6283)
at async StoryIndexGenerator.sortStories (./node_modules/@storybook/core-server/dist/index.js:60:3279)
at async StoryIndexGenerator.getIndex (./node_modules/@storybook/core-server/dist/index.js:60:4169)
at async extractStoriesJson (./node_modules/@storybook/core-server/dist/index.js:51:4623)
at async Promise.all (index 3)
at async buildStaticStandalone (./node_modules/@storybook/core-server/dist/index.js:61:2295)
at async withTelemetry (./node_modules/@storybook/core-server/dist/index.js:65:3948)
at async build (./node_modules/@storybook/cli/dist/generate.js:514:1059)
WARN 🚨 SyntaxError: Unexpected token ':'
the offending file is not specified so I was unable to fix the problem.
There are also other warnings to check:
WARN export 'DropdownMenuProps' (reexported as 'DropdownMenuProps') was not found in './Dropdown/DropdownMenu' (possible exports: DropdownMenu)
WARN export 'DropdownToggleProps' (reexported as 'DropdownToggleProps') was not found in './Dropdown/DropdownToggle' (possible exports: DropdownToggle)
WARN export 'DropdownProps' (reexported as 'DropdownProps') was not found in './Dropdown/Dropdown' (possible exports: Dropdown)
I created a new configuration file but left the previous one.
I deleted obsolete or non-obsolete packages that were no longer used.
Changes proposed in this Pull Request:
Commands executed:
npx storybook@latest upgraderename all stories.mdx files to .mdx
Ref PR: #1001
PR Checklist
main
branch.Short description of what this resolves:
Attempting to update the storybook to the latest version. The storybook application starts but from a syntax error, I think generated by babel:
the offending file is not specified so I was unable to fix the problem. There are also other warnings to check:
I created a new configuration file but left the previous one. I deleted obsolete or non-obsolete packages that were no longer used.
Changes proposed in this Pull Request:
Commands executed:
npx storybook@latest upgrade
rename all stories.mdx files to .mdx