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

Custom directive codegen error #258

Closed
6 tasks done
antony-k1208 opened this issue Aug 22, 2022 · 0 comments
Closed
6 tasks done

Custom directive codegen error #258

antony-k1208 opened this issue Aug 22, 2022 · 0 comments
Labels
bug Something isn't working vue3

Comments

@antony-k1208
Copy link

Describe the bug

When using a custom directive inside the code generation breaks because of an error in codegen.js/StorySourceCode.vue.
It makes no difference using a 3rd party directive or your own.
The rendering works as intended, only the code generation throws an error.

Reproduction

https://stackblitz.com/edit/histoire-vue3-starter-qk2ozr?file=src%2FAvatar.story.vue,src%2FBorderTest.story.vue

System Info

System:
    OS: macOS 12.5
    CPU: (10) arm64 Apple M1 Max
    Memory: 1.77 GB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.15.0 - ~/.volta/tools/image/node/16.15.0/bin/node
    Yarn: 1.22.17 - ~/.volta/tools/image/yarn/1.22.17/bin/yarn
    npm: 8.5.5 - ~/.volta/tools/image/node/16.15.0/bin/npm
  Browsers:
    Brave Browser: 104.1.42.88
    Firefox: 96.0.1
    Safari: 15.6
  npmPackages:
    vite: latest => 3.0.5

Used Package Manager

npm

Validations

@antony-k1208 antony-k1208 added the to triage This issue needs to be triaged label Aug 22, 2022
@Akryum Akryum added bug Something isn't working vue3 and removed to triage This issue needs to be triaged labels Aug 23, 2022
@Akryum Akryum closed this as completed in 37d983a Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vue3
Projects
None yet
Development

No branches or pull requests

2 participants