If you include a code block within an MDX file that uses just a single back tick, then this fails to render with the following error being thrown:
18:26:36 [vite] Internal server error: this.getData is not a function
@chart-io/react:storybook: Plugin: storybook:mdx-plugin
@chart-io/react:storybook: File: /home/ian/src/chart-io/packages/react/src/lib/components/Plots/Area/Area.mdx
@chart-io/react:storybook: at Object.exitCodeText (/home/ian/src/chart-io/node_modules/.pnpm/mdast-util-gfm-table@1.0.7/node_modules/mdast-util-gfm-table/lib/index.js:76:12)
@chart-io/react:storybook: at compile3 (/home/ian/src/chart-io/node_modules/.pnpm/@storybook+addon-docs@8.4.2_@types+react@18.3.12_storybook@8.4.2_prettier@2.8.8__webpack-sources@3.2.3/node_modules/@storybook/addon-docs/dist/preset.js:34:8463)
@chart-io/react:storybook: at fromMarkdown (/home/ian/src/chart-io/node_modules/.pnpm/@storybook+addon-docs@8.4.2_@types+react@18.3.12_storybook@8.4.2_prettier@2.8.8__webpack-sources@3.2.3/node_modules/@storybook/addon-docs/dist/preset.js:34:4797)
@chart-io/react:storybook: at parser (/home/ian/src/chart-io/node_modules/.pnpm/@storybook+addon-docs@8.4.2_@types+react@18.3.12_storybook@8.4.2_prettier@2.8.8__webpack-sources@3.2.3/node_modules/@storybook/addon-docs/dist/preset.js:34:20030)
@chart-io/react:storybook: at Function.parse (/home/ian/src/chart-io/node_modules/.pnpm/@storybook+addon-docs@8.4.2_@types+react@18.3.12_storybook@8.4.2_prettier@2.8.8__webpack-sources@3.2.3/node_modules/@storybook/addon-docs/dist/preset.js:44:7663)
@chart-io/react:storybook: at executor (/home/ian/src/chart-io/node_modules/.pnpm/@storybook+addon-docs@8.4.2_@types+react@18.3.12_storybook@8.4.2_prettier@2.8.8__webpack-sources@3.2.3/node_modules/@storybook/addon-docs/dist/preset.js:44:7981)
@chart-io/react:storybook: at new Promise (<anonymous>)
@chart-io/react:storybook: at Function.process (/home/ian/src/chart-io/node_modules/.pnpm/@storybook+addon-docs@8.4.2_@types+react@18.3.12_storybook@8.4.2_prettier@2.8.8__webpack-sources@3.2.3/node_modules/@storybook/addon-docs/dist/preset.js:44:7883)
@chart-io/react:storybook: at compile (/home/ian/src/chart-io/node_modules/.pnpm/@storybook+addon-docs@8.4.2_@types+react@18.3.12_storybook@8.4.2_prettier@2.8.8__webpack-sources@3.2.3/node_modules/@storybook/addon-docs/dist/preset.js:53:6918)
@chart-io/react:storybook: at compile2 (/home/ian/src/chart-io/node_modules/.pnpm/@storybook+addon-docs@8.4.2_@types+react@18.3.12_storybook@8.4.2_prettier@2.8.8__webpack-sources@3.2.3/node_modules/@storybook/addon-docs/dist/preset.js:53:7489)
@chart-io/react:storybook: at TransformPluginContext.transform (/home/ian/src/chart-io/node_modules/.pnpm/@storybook+addon-docs@8.4.2_@types+react@18.3.12_storybook@8.4.2_prettier@2.8.8__webpack-sources@3.2.3/node_modules/@storybook/addon-docs/dist/preset.js:53:8300)
@chart-io/react:storybook: at async PluginContainer.transform (file:///home/ian/src/chart-io/node_modules/.pnpm/vite@5.4.10_@types+node@18.19.64_terser@5.36.0/node_modules/vite/dist/node/chunks/dep-BWSbWtLw.js:49096:18)
@chart-io/react:storybook: at async loadAndTransform (file:///home/ian/src/chart-io/node_modules/.pnpm/vite@5.4.10_@types+node@18.19.64_terser@5.36.0/node_modules/vite/dist/node/chunks/dep-BWSbWtLw.js:51929:27)
@chart-io/react:storybook: at async viteTransformMiddleware (file:///home/ian/src/chart-io/node_modules/.pnpm/vite@5.4.10_@types+node@18.19.64_terser@5.36.0/node_modules/vite/dist/node/chunks/dep-BWSbWtLw.js:61881:24)
Converting to a triple back tick code block works fine, however doesn't allow mixing code blocks with other MDX content correctly to achieve something like this which was previously possible:
Describe the bug
If you include a code block within an MDX file that uses just a single back tick, then this fails to render with the following error being thrown:
Converting to a triple back tick code block works fine, however doesn't allow mixing code blocks with other MDX content correctly to achieve something like this which was previously possible:
Reproduction link
https://github.com/IPWright83/chart-io/tree/update-storybook
Reproduction steps
update-storybook
branchpnpm
if not already present (alternativelycd packages/react; npm install; npm run storybook
might work)pnpm install
pnpm storybook:package
@chart-io/react
System
Additional context
Related to https://github.com/storybookjs/storybook/discussions/24682
Currently trying to actively upgrade Storybook to the latest version...