Skip to content

Bug: Building scoped example project fails when run from example's directory #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mirohiab opened this issue Jan 27, 2025 · 1 comment
Labels

Comments

@mirohiab
Copy link

Expected Behaviour

According to the README documentation in the examples/end-to-end-use-cases/building-a-rag-pipeline, you should be able to get up and running by running the following commands:

npm install
npm run build-pkg

Current Behaviour

Running npm run build-pkg fails due to lerna.json not being found at the folder level.

Environment info

Tool Version
MacOS Sequoia 15.2
ZSH 5.9
Node 20.18.0
NPM 10.9.9

Code snippet

Not applicable

Steps to Reproduce

  1. npm install at the root level
  2. cd examples/end-to-end-use-cases/building-a-rag-pipeline
  3. npm install
  4. npm run build-pkg

Possible Solution

Instead of npm run build-pkg in the example project directory, run npm run build at the root level. After that everything works as expected.

Project Lakechain version

latest

Execution logs

❯ npm run build-pkg

> [email protected] build-pkg
> npx lerna run build --scope=building-a-rag-pipeline --include-dependencies

lerna notice cli v8.1.9
lerna ERR! ENOLERNA `lerna.json` does not exist, have you run `lerna init`?
npm error Lifecycle script `build-pkg` failed with error:
npm error code 1
npm error path /Repositories/project-lakechain/examples/end-to-end-use-cases/building-a-rag-pipeline
npm error workspace [email protected]
npm error location /Repositories/project-lakechain/examples/end-to-end-use-cases/building-a-rag-pipeline
npm error command failed
npm error command sh -c npx lerna run build --scope=building-a-rag-pipeline --include-dependencies
@ScopatGames
Copy link

I am running into this error with the Getting Started example for face detection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants