{"record":{"id":"5d85d63a3c26014b","repo":"lerna/lerna","slug":"enoent-5d85d6","errorCode":"ENOENT","errorMessage":"No pnpm-workspace.yaml found. See https://pnpm.io/workspaces for help configuring workspaces in pnpm.","messagePattern":"No pnpm-workspace\\.yaml found\\. See https://pnpm\\.io/workspaces for help configuring workspaces in pnpm\\.","errorType":"validation","errorClass":"ValidationError","httpStatus":null,"severity":"error","filePath":"libs/core/src/lib/project/index.ts","lineNumber":326,"sourceCode":"        \"ECONFIGWORKSPACES\",\n        `The \"useWorkspaces\" option has been removed. By default lerna will resolve your packages using your package manager's workspaces configuration. Alternatively, you can manually provide a list of package globs to be used instead via the \"packages\" option in lerna.json.`\n      );\n    }\n  }\n\n  #resolvePnpmWorkspaceConfig(): PnpmWorkspaceConfig {\n    let config: PnpmWorkspaceConfig;\n\n    try {\n      const configLocation = path.join(this.rootPath, \"pnpm-workspace.yaml\");\n      const configContent = fs.readFileSync(configLocation, { encoding: \"utf8\" });\n      config = load(configContent) as PnpmWorkspaceConfig;\n    } catch (err) {\n      // TODO: refactor to address type issues\n      // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n      // @ts-ignore\n      if (err.message.includes(\"ENOENT: no such file or directory\")) {\n        throw new ValidationError(\n          \"ENOENT\",\n          \"No pnpm-workspace.yaml found. See https://pnpm.io/workspaces for help configuring workspaces in pnpm.\"\n        );\n      }\n\n      // TODO: refactor to address type issues\n      // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n      // @ts-ignore\n      throw new ValidationError(err.name, err.message);\n    }\n\n    return config;\n  }\n\n  /**\n   * By default, the user's package manager workspaces configuration will be used to resolve packages.\n   * However, they can optionally specify an explicit set of package globs to be used instead.\n   *","sourceCodeStart":308,"sourceCodeEnd":344,"githubUrl":"https://github.com/lerna/lerna/blob/35d15a1567932be97759f512d8b8033dad72b411/libs/core/src/lib/project/index.ts#L308-L344","documentation":"Error \"No pnpm-workspace.yaml found. See https://pnpm.io/workspaces for help configuring workspaces in pnpm.\" thrown in lerna/lerna.","triggerScenarios":"Thrown at libs/core/src/lib/project/index.ts:326 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35d15a1567932be97759f512d8b8033dad72b411","analyzedAt":"2026-08-27T05:01:00.632Z","schemaVersion":2},"datasetVersion":"2026-08-27T08:17:20.692Z"}