Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 19, 2026

Completes the Storybook v10 migration by restoring MDX documentation pages that were temporarily disabled in the previous fix.

Changes

  • Install @storybook/addon-docs: Required for MDX support in Storybook v10 (no longer included by default)
  • Update .storybook/main.ts: Add addon-docs to addons array and re-enable *.mdx files in stories glob
  • Fix import path in Overview.mdx: Change from @storybook/blocks to @storybook/addon-docs/blocks (blocks are now exported as subpath)
// .storybook/main.ts
const config: StorybookConfig = {
-  stories: ["../src/**/*.stories.@(js|jsx|ts|tsx)"],
+  stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
   addons: [
+    "@storybook/addon-docs",
     "@storybook/addon-links",
     "@storybook/addon-a11y",
     "./vscode-theme-addon/preset.ts",
   ],
};

Screenshot

Overview documentation page now renders correctly with all content, images, and links:

Storybook Overview MDX

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • storybook.js.org
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/vscode-codeql/vscode-codeql/extensions/ql-vscode/node_modules/.bin/storybook build (dns block)
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/vscode-codeql/vscode-codeql/extensions/ql-vscode/node_modules/.bin/storybook dev -p 6006 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Fix the failing GitHub Actions workflow build
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 60801511444
Job URL: https://github.com/github/vscode-codeql/actions/runs/21141448950/job/60801511444


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…rily disabling MDX

- Convert require.resolve() to ES module syntax using import.meta.url
- Remove MDX files from stories config to fix build (MDX support needs proper addon configuration)

Co-authored-by: d10c <9970661+d10c@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions workflow build Fix Storybook build failure - convert preset.ts to ES modules Jan 19, 2026
Copilot AI requested a review from d10c January 19, 2026 15:41
- Install @storybook/addon-docs package
- Add addon-docs to the addons configuration in main.ts
- Update Overview.mdx to use @storybook/addon-docs/blocks import path
- Re-enable MDX files in stories configuration
- Verify build succeeds with MDX documentation included

Co-authored-by: d10c <9970661+d10c@users.noreply.github.com>
Copilot AI changed the title Fix Storybook build failure - convert preset.ts to ES modules Re-enable MDX documentation support in Storybook v10 Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants