storybookjs / storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation
https://storybook.js.org
MIT License
84.58k stars 9.3k forks source link

Vue3 no longer exports app in 7.0-alpha #19200

Open shilman opened 2 years ago

shilman commented 2 years ago

This commit removes the app export from @storybook/vue3:

https://github.com/storybookjs/storybook/commit/24251e27f1233a568fd441df65af3355d89cf0f5#diff-63c4fc9feba520d3505ec8a6796e7d0576ef804b6f92d68ae8b8c2e64f18264c

We should try to restore it so that users can use it to add global components and directives.

matsko commented 1 year ago

I've also run into this issue.

matsko commented 1 year ago

Looks like this is the current approach:

import {setup} from "@storybook/vue3";

setup((app => {
  return setupMyApp(app);
}));