Open lud-hu opened 1 year ago
@lud-hu please remove your npx cache and rerun
npx storybook-nuxt init
Thanks @chakAs3 ! This did at least help for the initialization of storybook. Unfortunately I cannot add a story afterwards:
Error: Build failed with 5 errors:
node_modules/nuxt/dist/app/entry.js:3:24: ERROR: Could not resolve "#build/paths.mjs"
node_modules/nuxt/dist/app/entry.js:5:7: ERROR: Could not resolve "#build/css"
node_modules/nuxt/dist/app/entry.js:6:20: ERROR: Could not resolve "#build/plugins"
node_modules/nuxt/dist/app/entry.js:7:26: ERROR: Could not resolve "#build/root-component.mjs"
node_modules/nuxt/dist/app/entry.js:8:26: ERROR: Could not resolve "#build/nuxt.config.mjs"
The UI complains with:
Failed to fetch dynamically imported module: http://localhost:6006/node_modules/.cache/sb-vite/deps/@storybook_vue3_preview.js?v=d53314b2
I'm using nuxt 3.6.5.
@lud-hu can you try again
Unfortunately the same behaviour with storybook-nuxt@0.1.0-rc.8 :(
Unfortunately the same behaviour with storybook-nuxt@0.1.0-rc.8 :(
can you use the demo repo or create a fresh reproduction repo for me so i check it out, it is difficult to catch the issue in your system
This resolves by removing these imports from this path node_modules/nuxt/dist/app/entry.js it works but it seems not the correct method to make this work
This resolves by removing these imports from this path node_modules/nuxt/dist/app/entry.js it works but it seems not the correct method to make this work
your idea is relevant i tried to avoid this i felt not right thing, let me dig this path thanks
This resolves by removing these imports from this path node_modules/nuxt/dist/app/entry.js it works but it seems not the correct method to make this work
your idea is relevant i tried to avoid this i felt not right thing, let me dig this path thanks
great if you do have any update please share. Thanks
@usamatariqnetshore please here a working demo using latest version https://stackblitz.com/~/github.com/storybook-vue/storybook-nuxt-demo
@usamatariqnetshore please here a working demo using latest version https://stackblitz.com/~/github.com/storybook-vue/storybook-nuxt-demo
Thanks tried it. unfortunately similar issues are there in file node_modules/@storybook-vue/nuxt/dist/preview.mjs:4:20: 4 │ import plugins from '#build/plugins';
and 2 similar imports.
kindly check
@usamatariqnetshore please here a working demo using latest version https://stackblitz.com/~/github.com/storybook-vue/storybook-nuxt-demo
Thanks tried it. unfortunately similar issues are there in file node_modules/@storybook-vue/nuxt/dist/preview.mjs:4:20: 4 │ import plugins from '#build/plugins';
and 2 similar imports. kindly check
are you sure ? here is embed https://stackblitz.com/edit/nuxt-starter-cvzvzg?embed=1&file=package.json
great. it works here.thanks to get updated version do i have to npx storybook-nuxt init ? apologies for my noob questions
I am also getting this error, however, clearing the cache didn't solve it in my case.
My path of the package is a little different: error An unexpected error occurred: "could not find a copy of typescript to link in <path_to_project>/node_modules/@storybook-vue/nuxt/node_modules/@storybook/vue3-vite/node_modules
Edit: When I changed the @storybook-vue/nuxt
version to 0.1.4-alpha.1
like in the live demo, the dependencies installed fine. But I am getting the following errors
ERROR Transform failed with <number> errors:
The symbol "_withScopeId" has already been declared
120| import { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, vShow as _vShow, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue"
121|
122| const _withScopeId = n => (_pushScopeId("data-v-52dc9ada"),n=n(),_popScopeId(),n)
| ^
...
fyi i used pnpm instead of yarn and it worked perfectly. npm worked as well
I get an error during setup and cannot complete to put storybook into my existing nuxt project.
storybook.log: