diff --git a/lib/core-client/src/manager/index.ts b/lib/core-client/src/manager/index.ts index 45f7a9f8098b..8a31a2a5a0d6 100644 --- a/lib/core-client/src/manager/index.ts +++ b/lib/core-client/src/manager/index.ts @@ -5,5 +5,9 @@ import Provider from './provider'; const { document } = global; -const rootEl = document.getElementById('root'); -renderStorybookUI(rootEl, new Provider()); +// We need to wait a promise "tick" to allow all subsequent addons etc to execute +// (alternatively, we could ensure this entry point is always loaded last) +Promise.resolve().then(() => { + const rootEl = document.getElementById('root'); + renderStorybookUI(rootEl, new Provider()); +});