Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 1.17 KB

solvedIssues.md

File metadata and controls

46 lines (37 loc) · 1.17 KB

Error Loading MDX: Cannot read property 'path' of undefined

The @mdx-js version has a breaking change (should be short-term).

mdx-js/mdx#1153

Modifying output to be used in Hugo

.storybook/main.js webpack entrypoint is for the preview, not for the manager

manager = broader UI preview = inner guy

How to add a container around a story

import { addons } from '@storybook/addons'; import { DocsContainer } from '@storybook/addon-docs/blocks'; import React from 'react';

export const containerParams = { docs: { container: ({ children, context }) => { const channel = addons.getChannel(); channel.emit('sourcecode/selectedStory', context.parameters.fileName); return (

{children}
); } } };

{/* <Meta parameters={{ docs: { container: ({ children, context }) => { const channel = addons.getChannel(); channel.emit('sourcecode/selectedStory', context.parameters.fileName); return (

{children}
); } } }} /> */}