#Storybook One of your manager-entries failed

8 messages · Page 1 of 1 (latest)

wooden shoal
#

Seeing this error after running the SB7 migration, searching turns up nothing here or in Google/SO. Our main.js is:

import { dirname, join } from 'path'
module.exports = {
  stories: [],
  addons: [
    getAbsolutePath('@storybook/addon-essentials'),
    {
      name: '@storybook/addon-styling',
      options: {
        postcssLoaderOptions: {
          implementation: require('postcss'),
        },
      },
    },
    getAbsolutePath('@storybook/addon-a11y'),
    getAbsolutePath('storybook-fixtures'),
    getAbsolutePath('storybook-react-i18next'),
    getAbsolutePath('@storybook/addon-docs'),
    getAbsolutePath('storybook-addon-react-docgen'),
  ],
  features: {
    buildStoriesJson: true,
  },
  typescript: {
    check: false,
    checkOptions: {},
    reactDocgen: 'react-docgen-typescript',
    reactDocgenTypescriptOptions: {
      shouldExtractLiteralValuesFromEnum: true,
      propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true),
    },
  },
  webpackFinal: async (config, { configType }) => {
    config.optimization = {
      minimize: false,
      minimizer: [],
    }
    return config
  },
  framework: {
    name: getAbsolutePath('@storybook/react-webpack5'),
    options: {},
  },
}
/**
 * This function is used to resolve the absolute path of a package.
 * It is needed in projects that use Yarn PnP or are set up within a monorepo.
 */
function getAbsolutePath(value) {
  return dirname(require.resolve(join(value, 'package.json')))
}
noble olive
#

hi. thanks for sharing the main.js but i don't see the error you mentioned.

wooden shoal
#
register-bundle.js:1 [Storybook] One of your manager-entries failed: http://localhost:6006/sb-addons/storybook-fixtures-9/register-bundle.js TypeError: (0 , WM.makeDecorator) is not a function
    at decorator.js:25:37
    at register-bundle.js:2:495
    at index.js:11:19
    at register-bundle.js:2:495
    at Panel.js:114:11
    at register-bundle.js:2:495
    at register.js:10:31
    at register-bundle.js:2:495
    at register-bundle.js:1:8
(anonymous) @ register-bundle.js:1
register.js:2 [Storybook] One of your manager-entries failed: http://localhost:6006/sb-addons/react-docgen-11/register-bundle.js TypeError: kr.default.register is not a function
    at register.js:74:20
    at register-bundle.js:2:199
    at register.js:2:1
#

(Also, thanks for responding)

final torrent
#

Hey @wooden shoal 👋

It looks like the error is from your storybook-fixtures addon which hasn't been upgraded to Storybook 7 yet.

I'd recommend that you reach out to the maintainer of that addon to ask from them to make the change.

https://github.com/tyom/storybook-addons/tree/master/packages/storybook-fixtures

(Side note: this looks like a really cool addon!)

GitHub

Useful add-ons for Storybook. Contribute to tyom/storybook-addons development by creating an account on GitHub.

wooden shoal
#

Thanks!

final torrent
#

No problem 🙂 In the mean time, if you remove the addon from your main.js file, that error should go away

wooden shoal
#

I did and it did. Not sure why we have it installed as we don't use it.