#Autodocs are missing

7 messages · Page 1 of 1 (latest)

torpid phoenix
#

I just successfully upgraded to storybook 7 prerelease, but the autodocs are not appearing in my storybook for any component. I am on 7.0.0-rc.6 and have this in my main.js

  docs: {
    enabled: true,
    autodocs: true
  },
  framework: {
    name: '@storybook/react-webpack5',
    options: {},
  },

I also tried adding tags: ['autodocs'] to a story and nothing appeared then either.

I also tried adding @storybook/addon-docs (to my addons array, and a Docs tab did appear then but it rendered with this error

    at http://localhost:6006/vendors-node_modules_storybook_addon-docs_dist_DocsRenderer-7FRJXR4N_mjs.iframe.bundle.js:7282:24745
    at handleInterpolation (http://localhost:6006/vendors-node_modules_storybook_addon-docs_dist_DocsRenderer-7FRJXR4N_mjs.iframe.bundle.js:7556:3227)
    at serializeStyles (http://localhost:6006/vendors-node_modules_storybook_addon-docs_dist_DocsRenderer-7FRJXR4N_mjs.iframe.bundle.js:7561:1835)```
torpid phoenix
silver latch
#

that is interesting, the docs tab appearing makes me thing not all dependencies are up-to-date. All Storybook packages needs to be at 7.0.0-rc.6. Can you share your package.json?

torpid phoenix
#
"@storybook/addon-actions": "7.0.0-rc.6",
    "@storybook/addon-docs": "7.0.0-rc.6",
    "@storybook/addon-knobs": "6.3.0",
    "@storybook/addon-links": "7.0.0-rc.6",
    "@storybook/addon-postcss": "^2.0.0",
    "@storybook/core": "6.5.0-rc.1",
    "@storybook/react": "7.0.0-rc.6",
    "@storybook/react-webpack5": "7.0.0-rc.6",
    "@storybook/storybook-deployer": "2.8.1",
    "eslint-plugin-storybook": "0.6.11",
    "storybook": "7.0.0-rc.6",
torpid phoenix
#

This is what I had after running the automigration and upgrade command

lime aspen
#

Can you try removing the @storybook/core dependency?

lime aspen
#

Cc @river pecan related to what you’re working on 👆