Skip to content
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

Error caused by lerna.json without "packages" #272

Open
jeffrson opened this issue Jan 29, 2025 · 0 comments
Open

Error caused by lerna.json without "packages" #272

jeffrson opened this issue Jan 29, 2025 · 0 comments

Comments

@jeffrson
Copy link

jeffrson commented Jan 29, 2025

I don't know how it behaved in the past, but nowadays "lerna.json" without "packages" is perfectly valid - IMO with both lerna and lerna-lite.

When there is a lerna.json, created by lerna init (lerna-lite or lerna), as simple as

{
  "$schema": "node_modules/@lerna-lite/cli/schemas/lerna-schema.json",
  "version": "0.0.0"
}
> ultra --info

only shows this error message

error Cannot read properties of undefined (reading 'length')

However, with

{
  "$schema": "node_modules/lerna/schemas/lerna-schema.json",
  "packages": [ "packages/*" ],
  "version": "0.0.0"
}

it works:

Detected workspaces: yarn, lerna
Workspace yarn with npm
 0  root at .
@jeffrson jeffrson changed the title Error with lerna.json without "packages" Error caused by lerna.json without "packages" Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant