Skip to content

Lerna 6 issues #1566

@maribethb

Description

@maribethb

We use a different version of lerna in examples than we do in the root directory, which is probably its own issue.

The version in examples was recently updated to v6 of lerna in #1542 . That version updated the mechanism of lerna run to use nx. It doesn't work for us though.

cd examples
npm ci
npx lerna run build
lerna notice cli v6.4.1
lerna info versioning independent
 >  Lerna (powered by Nx)   Successfully ran target build for 0 projects (6ms)
 
maribethb-macbookpro1:examples maribethb$ npx lerna run predeploy
lerna notice cli v6.4.1
lerna info versioning independent

 >  Lerna (powered by Nx)   Cannot find project 'blockly-react-sample' 

Both of these are wrong, some packages do have build targets (including blockly-react) and I have no idea why it can't find that particular package.

Things still work if you set useNx: false in lerna.json but opening this issue to document the reason why and possibly to investigate if we need to fix something to be able to use nx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions