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
build-storybook -c .storybook -o .storybook-staticnpx 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,
- received sharedStateChanged-manager-storybook/viewport but was unable to determine the source of the event
- received updateGlobals but was unable to determine the source of the event

About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 18 (4 by maintainers)
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
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:
npm run build-storybookserve -s storybook-static🥳🥳The finally I resolve this problem when i am run:
serve storybook-staticHaving the same issue on 8.6.0
Also having the same issue on storybook v8.2.1
Same problem, still exists in Storybook 6.5.9. Does this issue need to be reopened? @shilman
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
I think we should open another issue exclusively for this reordering error
Still same issue on v 7.6.10