I followed the instruction on Set up Prismic in a Nuxt Project - Prismic, and setup a nuxt project with prismic slice machine and storybook. I'm able to start the slicemachine and it works fine. But when I try to start the storybook to capture the screenshot, it stuck at the loading bar forever, and there's no error reporting in the terminal console. Anyone experienced the same thing?
OK, can you try deleting your .nuxt-storybook, node_modules and package-lock.json files, update your package.json file with the following json and then run npm i.
storybook: {
// This is a bug with `getStoriesPaths` and Nuxt that is awaiting to be fixed
stories: [...getStoriesPaths().map(path => path.replace("../", "~/")), ...getStoriesPaths()]
},
to
storybook: {
// This is a bug with `getStoriesPaths` and Nuxt that is awaiting to be fixed
stories: [...getStoriesPaths().map(path => path.replace("../", "~/")),]
},