You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import {
app
} from '@storybook/vue3'
import CelestiaSkyViewer from '@/components/CelestiaSkyViewer/CelestiaSkyViewer.vue'
app.component('celestia-sky-viewer', CelestiaSkyViewer)
Yet, when I run npm run storybook I encounter the following stack trace errors:
ERROR in ./node_modules/@vueuse/core/index.mjs 763:19-27
Can't import the named export 'computed' from non EcmaScript module (only default export is available)
ERROR in ./node_modules/@vueuse/core/index.mjs 2568:22-30
Can't import the named export 'reactive' from non EcmaScript module (only default export is available)
I'm not sure what I need to do to get the following style of syntax working with storybook:
Please let me know if any further details are needed for a full replication of the bug, essentially, I feel that it's not possible as storybooks currently stands to use @vueuse with storybooks?
Additional Information:
This is a typescript Vue 3 project ... if that is relevant to the discussions.
The text was updated successfully, but these errors were encountered:
michealroberts
changed the title
Vue 3 + Storybook -Incompatibility with "@vueuse/core" library (and potentially all libraries that use export { x } from Y?)
Vue 3 + Storybook - Incompatibility with "@vueuse/core" library (and potentially all libraries that use export { x } from Y?)
Sep 7, 2021
@shilman i use a basic vue 3 setup. (setup via cli). this snippet is just for the .storybook/main.js file. it is not a vue problem. not sure whether the problem is due to vueuse. but at least it's working again now.
We’re cleaning house! Storybook has changed a lot since this issue was created and we don’t know if it’s still valid. Please open a new issue referencing this one if:
I install storybook into my project as outlined here:
https://storybook.js.org/docs/vue/get-started/introduction
So npx storybook init into the root of my Vue 3 project.
I have a component which makes use of the @vueuse/core library. My component works perfectly and passes all of my jest.spec.ts tests.
My setup is as follows:
*.stories.ts file:
./.storybook/main.js:
./.storybook/main.js:
Yet, when I run
npm run storybook
I encounter the following stack trace errors:I'm not sure what I need to do to get the following style of syntax working with storybook:
Please let me know if any further details are needed for a full replication of the bug, essentially, I feel that it's not possible as storybooks currently stands to use @vueuse with storybooks?
Additional Information:
This is a typescript Vue 3 project ... if that is relevant to the discussions.
The text was updated successfully, but these errors were encountered: