storybook icon indicating copy to clipboard operation
storybook copied to clipboard

Path resolution error when generating static build

Open simondib opened this issue 4 years ago • 1 comments

Getting a path resolution error on yarn build-storybook.

Manually editing .nuxt-storybook/storybook/preview.js to an absolute path resolves, but this generates a different error, and this isn't a workable solution in any case as this file is auto-generated.

Version

@nuxtjs/storybook: 4.0.4 nuxt: 2.15.3

Reproduction Link

https://codesandbox.io/s/inspiring-voice-1wxv2

Steps to reproduce

  1. Open Codesandbox project
  2. run yarn storybook:build and observe error

What is Expected?

Storybook static build to generate successfully.

What is actually happening?

ERR! Module not found: Error: Can't resolve '~~/.nuxt-storybook/storybook/preview.js' in '/sandbox/.storybook'

simondib avatar Jun 14 '21 08:06 simondib

Change yarn build-storybook into yarn nuxt storybook build.

farnabaz avatar Jun 18 '21 13:06 farnabaz

v4 of this module is no longer actively supported. Please try the newest version and open an new issue if the problem persists. Thank you for your understanding.

tobiasdiez avatar May 01 '24 07:05 tobiasdiez