storybook: Error: received updateGlobals but was unable to determine the source of the event, received updateGlobals but was unable to determine the source of the event

Describe the bug When I try to build and serve the build version of storybook this issue arises.

To Reproduce Run

  1. build-storybook -c .storybook -o .storybook-static
  2. npx serve -s .storybook-static

System Mac OS Dependencies:

  "react": "^16.13.1",
 "@storybook/addon-actions": "^6.1.20",
 "@storybook/addon-essentials": "^6.1.20",
 "@storybook/addon-knobs": "^6.1.20",
 "@storybook/addon-links": "^6.1.20",
 "@storybook/node-logger": "^6.1.20",
 "@storybook/preset-create-react-app": "^3.1.6",
 "@storybook/react": "^6.2.9"

Below is my .storybook/main.js file

module.exports = {
  stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
  addons: [
    '@storybook/addon-links',
    '@storybook/addon-essentials',
    '@storybook/preset-create-react-app',
  ],
};

Additional context Throws the following errors in the console,

  1. received sharedStateChanged-manager-storybook/viewport but was unable to determine the source of the event
  2. received updateGlobals but was unable to determine the source of the event

Screen Shot 2021-07-22 at 2 40 06 PM

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 18 (4 by maintainers)

Most upvoted comments

Seems this still exists!

FYI I am getting this error when using this recipe: https://github.com/storybookjs/storybook/blob/next/addons/docs/docs/recipes.md#reordering-docs-tab-first

export const parameters = {
  previewTabs: { 'storybook/docs/panel': { index: -1 } },
}

Both when running storybook locally and with the static build. I would love to have a way to reorder the tabs without causing this warnings.

it still exists 🥲

I had the same problem when i am run:

  1. npm run build-storybook
  2. serve -s storybook-static

image

🥳🥳The finally I resolve this problem when i am run: serve storybook-static

Having the same issue on 8.6.0

Also having the same issue on storybook v8.2.1

FYI I am getting this error when using this recipe: https://github.com/storybookjs/storybook/blob/next/addons/docs/docs/recipes.md#reordering-docs-tab-first

export const parameters = {
  previewTabs: { 'storybook/docs/panel': { index: -1 } },
}

Both when running storybook locally and with the static build. I would love to have a way to reorder the tabs without causing this warnings.

Same problem, still exists in Storybook 6.5.9. Does this issue need to be reopened? @shilman

image

There’s now a reproduction repo in the related discussion: https://github.com/storybookjs/storybook/discussions/26941#discussioncomment-10221221

It shows that it doesn’t show the error on simple story pages, but produces it on more complicated pages 100% of time - while using the exact same components, just rendering the same thing multiple times. So - as @nukemonk points out - it does seem like a race condition.

Repo: https://github.com/nukemonk/globals_toolbar_error Chromatic: https://66ac97cfb6985b19d709445f-szcqjhqcuf.chromatic.com/?path=/docs/example-button-with-problem--docs

Screenshot 2024-08-02 at 10 49 51

I think we should open another issue exclusively for this reordering error

Still same issue on v 7.6.10