histoire-dev / histoire-dev/histoire
Can't make it work with Vike
- Dominant language
- TypeScript
- Stars
- 3.6k
- Forks
- 212
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug
Hi, I'm a maintainer of [Vike](https://vike.dev) and we're trying to make Histoire work with Vike, but without success so far. It seems there are some issues on Histoire's side?
Reproduction: https://github.com/brillout/vike-histoire-build-minimal-reproduction.
Note that the reproduction patches Vike to remove its `output.entryFileNames` usage. Thus the following issue doesn't seem to be caused by Vike:
> Invalid substitution "/home/rom/tmp/vike-histoire-build-minimal-reproduction/node_modules/.pnpm/@histoire_app@1.0.0-alpha.2_vite@6.3.5_@types_node@20.19.9_jiti@2.4.2_tsx@4.20.3_/node_modules/@histoire/app/dist/bundle-main.js" for placeholder "[name]" in "output.entryFileNames" pattern, can be neither absolute nor relative path.
### Reproduction
https://github.com/brillout/vike-histoire-build-minimal-reproduction
### System Info
```shell
System:
OS: Linux 6.8 Ubuntu 24.04.2 LTS 24.04.2 LTS (Noble Numbat)
CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
Memory: 3.64 GB / 7.52 GB
Container: Yes
Shell: 5.2.21 - /bin/bash
Binaries:
Node: 22.14.0 - ~/.nvm/versions/node/v22.14.0/bin/node
Yarn: 1.22.22 - ~/.nix-profile/bin/yarn
npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm
pnpm: 9.15.9 - ~/.local/share/pnpm/pnpm
bun: 1.1.24 - ~/.bun/bin/bun
Watchman: 2024.03.11.00 - /home/rom/.nix-profile/bin/watchman
Browsers:
Chrome: 138.0.7204.157
npmPackages:
@histoire/plugin-vue: ^1.0.0-alpha.2 => 1.0.0-alpha.2
@vitejs/plugin-vue: ^6.0.0 => 6.0.0
histoire: ^1.0.0-alpha.2 => 1.0.0-alpha.2
vite: ^6.3.5 => 6.3.5
```
### Used Package Manager
pnpm
### Validations
- [x] Follow our [Code of Conduct](https://github.com/histoire-dev/histoire/blob/main/CODE_OF_CONDUCT.md)
- [x] Read the [Contributing Guidelines](https://github.com/histoire-dev/histoire/blob/main/CONTRIBUTING.md).
- [x] Read the [docs](https://histoire.dev/guide/).
- [x] Check that there isn't [already an issue](https://github.com/histoire-dev/histoire/issues) 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](https://github.com/histoire-dev/histoire/discussions).
- [x] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
Contributor guide
Assessment
This issue has not been assessed yet.