The @mdx-js
version has a breaking change (should be short-term).
.storybook/main.js webpack entrypoint is for the preview, not for the manager
manager = broader UI preview = inner guy
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}
);
}
}
}} /> */}