Skip to content

Unable to install Chainlit from source code because github/frontend dist dirs not found #2467

@francisjervis

Description

@francisjervis

Describe the bug
The missing built front end issue #2448 referencing #2425 is fixed in 2.7.2 for installs from pypi (the official release).

When trying to install from a fork (in sync with main branch of this repo, added tests all pass, backend changes only), the message reappears. However it is not entirely clear if the cause is the same as #2448. See #1673 in which the same issue was fixed for poetry (which is no longer being used).

Presumably pnpm run buildUi is being run at some point during the release process for the official release but it is unclear how to integrate this into the process of installing a fork from GH...

To Reproduce
Create a new project & venv, run...

pip install "git+https://github.com/francisjervis/chainlit.git@feature/websocket-lifecycle-callbacks#subdirectory=backend"
chainlit run hello.py

Expected behavior
App launches

Logs
FileNotFoundError: frontend built UI dir not found

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfrontendPertains to the frontend.needs-triage

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions