Skip to content

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

@mirohiab

Description

@mirohiab

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions