spacedriveapp / spacedriveapp/spacebot

Local spaceui library is expected for interface building but probably shouldn't.

Open
#568 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
2.4k
Forks
367
PR merge metrics
No merged PRs in 30d

Description

I'm having trouble building spaceui current main branch from a debian trixie machine. I'm following the quickstgart but cargo install --path . fails with

   Compiling spacebot v0.4.1 (.../spacebot)
error: #[derive(RustEmbed)] folder '.../spacebot/interface/dist/' does not exist. cwd: '.../spacebot'
  --> src/api/server.rs:26:1
   |
26 | / /// Embedded frontend assets from the Vite build output.
27 | | #[derive(Embed)]
28 | | #[folder = "interface/dist/"]
29 | | #[allow(unused)]
30 | | struct InterfaceAssets;
   | |_______________________^

Please check that at https://github.com/spacedriveapp/spacebot/blob/main/interface/vite.config.ts#L6

const spaceui = path.resolve(__dirname, "../../spaceui/packages");

building the interface needs a local installation of spaceui. Is that right?. In any case, if i git clone spaceui into that folder i have another error ([vite]: Rollup failed to resolve import "class-variance-authority" from ".../spaceui/packages/primitives/src/Button.tsx".)

Thanks in advance for your time.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with interface/vite.config.ts and src/api/server.rs, then compare the quickstart's build-from-source steps with the required local spaceui path and the reported missing dependency. Confirm whether a local spaceui checkout is intended and verify that the documented setup can complete cargo install and produce interface/dist/.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, typescript, vite
Domain
build-system, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.