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
Error [ERR_UNSUPPORTED_DIR_IMPORT] when trying to use @heroicons/vue
with histoire
#696
Comments
Start a new pull request in StackBlitz Codeflow. |
I have run into this issue too. Trying to work out what is going wrong. At the moment from what I can see the package isValidNodeImport v1.4.2 mlly
isValidNodeImport v1.6.1 mlly
|
I believe this issue is because histoire is using quite an old version of vite-node. The |
This issue can be worked around for now by pinning the version of mlly: "mlly": "1.4.2", |
Ran into the same issue.
This does help indeed, thank you. |
Just reported a possibly related issue when using csv-parse: #712 |
Describe the bug
When importing Hero Icons from the
@heroicons/vue
in a Histoire story,histoire
will throw the following error:npm run dev
andnpm run build
are both able to load the icons in Vue components. This error is only present when runningnpm run story:dev
andnpm run story:build
Reproduction
This is a StackBlitz link that reproduces the error: https://stackblitz.com/edit/histoire-vue3-starter-zyx8z5?file=package.json
Unfortunately the error StackBlitz shows is different from the one node shows, so I have also added the code to a GitHub repo so it can be run locally. https://github.com/nfaucher8/histoire-heroicons-example
Also this example shows that when running the same project with older versions of the dependencies the error is not present https://stackblitz.com/edit/histoire-vue3-starter-rmib7n?file=package.json
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: