Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.
This repository was archived by the owner on May 3, 2024. It is now read-only.

How to run Vite and other NPM dependencies? #68

Description

@charmoniumQ
git clone https://github.com/timhae/firefly
cd firefly
env -C nix develop -c ./update.sh
nix flake check

Checking the error log, /var/lib/firefly-iii/storage/logs/, I see production.ERROR: Vite manifest not found at: /nix/store/8w6ibkzlgbh9g0vka9xxz6k4p9xvj5ch-firefly-iii/public/build/manifest.json. Googling that error, it seems that the solution is to run vite build to generate this manifest. However, vite is an NPM dev-dependency of Firefly-III.

A quick and dirty solution would be to add Vite to the path as a special case. But a more general purpose solution would be to call buildNpmPackage on Firefly and either insert that package into the $PATH or perhaps merging the Npm-built package with the Composer-built package (as in svanderburg/composer2nix#21).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions