histoire
histoire copied to clipboard
Auto props detection not work with Vue2
Describe the bug
When using Histoire, Vue2 does not automatically detect props. I don't know if it's deliberate but I couldn't find anything in the documentation. If it is voluntary, how could it be changed to make it work?
Reproduction
Start the histoire-example-vue3 but change the package config with Vue2
System Info
System:
OS: Linux 6.8 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
CPU: (8) x64 Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz
Memory: 12.25 GB / 30.96 GB
Container: Yes
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.17.1 - /usr/bin/node
npm: 9.6.7 - /usr/bin/npm
Browsers:
Chrome: 128.0.6613.84
npmPackages:
@histoire/plugin-vue2: ^0.17.17 => 0.17.17
@vitejs/plugin-vue2: 2.3.1 => 2.3.1
histoire: ^0.17.17 => 0.17.17
vite: 5.3.4 => 5.3.4
Used Package Manager
npm
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- [X] The provided reproduction is a minimal reproducible example of the bug.