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

Docgen fails to resolve radix-vue module #1653

Open
dobby opened this issue Mar 25, 2024 · 2 comments
Open

Docgen fails to resolve radix-vue module #1653

dobby opened this issue Mar 25, 2024 · 2 comments

Comments

@dobby
Copy link

dobby commented Mar 25, 2024

Current behavior
I created a storybook for a component but when I want to view the component in storybook the component fails to render because of an error in the docgen api plugin. During normal vue rendering (out of the context of storybook), this component work perfectly.

The problem relates to an import of a radix library type:

import type { PrimitiveProps } from 'radix-vue'

This is the error I am getting:
[plugin:storybook:vue-docgen-plugin] ENOENT: no such file or directory, open '../../../node_modules/radix-vue/dist/index.js'

It seems to resolve to the wrong directory, I think the node_modules directory is one directory higher then the ../ is going to.

To reproduce
https://github.com/dobby/vue-storybook
If you start storybook and go to the button or card you will see the error.

What should happen:
It should resolve the dependency to radix-vue correctly.

@enkot
Copy link

enkot commented Mar 27, 2024

Can confirm:
"vue-docgen-api": "4.75.1" - works fine
"vue-docgen-api": "4.76.0" - import is broken

Looks like a regression after #1646

@dobby
Copy link
Author

dobby commented Mar 27, 2024

Excellent, can confirm. Will use version 4.75.1 for the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants