Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't resolve '@storybook/addon-docs' #437

Closed
Tracked by #444 ...
Decipher opened this issue Feb 7, 2022 · 2 comments · Fixed by #475
Closed
Tracked by #444 ...

Can't resolve '@storybook/addon-docs' #437

Decipher opened this issue Feb 7, 2022 · 2 comments · Fixed by #475
Labels
documentation Improvements or additions to documentation

Comments

@Decipher
Copy link
Member

Decipher commented Feb 7, 2022

Describe the bug
While testing the Druxt 0.17.0 update on the Druxt Quickstart repo, testing Storybook resulted in the following error:

ERROR in ./node_modules/druxt/dist/components/DruxtModule.stories.mdx
Module not found: Error: Can't resolve '@storybook/addon-docs' in '/workspace/quickstart-druxt-site/nuxt/node_modules/druxt/dist/components'

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://gitpod.io/#https://github.com/druxt/quickstart-druxt-site/pull/54
  2. Wait...
  3. Ctrl-C
  4. npx nuxt storybook

Expected behavior
Storybook should not crash.

Media
N/A

Your Environment (please complete the following information):
N/A

Additional context

Workaround

npm i -D @storybook/[email protected]
@Decipher Decipher added the bug Something isn't working label Feb 7, 2022
@Decipher
Copy link
Member Author

I spent some time on this issue as part of #444, and I was unable to reproduce the issue.

It appears that this may be limited to updating the module. Uninstalling and re-installing does not result in the same issue.

@Decipher
Copy link
Member Author

Decipher commented Mar 6, 2022

Related to storybookjs/storybook#14429

It appears that the only thing that can be done at the moment is to update the documentation to include this dependency.

Decipher added a commit that referenced this issue Mar 6, 2022
Decipher added a commit that referenced this issue Mar 7, 2022
@Decipher Decipher added documentation Improvements or additions to documentation and removed bug Something isn't working labels Mar 9, 2022
Decipher added a commit that referenced this issue Mar 9, 2022
Decipher added a commit that referenced this issue Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant