Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Problems publishing to a private npm registry (CodeArtifacts) using Lerna

I'm looking to move from public npm registry to private npm registry hosted in AWS. The cmd that we are using to publish to a private registry is lerna publish --conventional-commits --conventional-...
RoverGrover's user avatar
0 votes
0 answers
12 views

Issues with Installing Dependencies for AWS Lambda Layers in a Monorepo Using Lerna and Yarn Workspaces

The project that I'm working has a monorepo setup using Lerna and Yarn workspaces. Inside my monorepo, I have three applications, including a backend. Within the backend, there's a folder called ...
NicoleZ's user avatar
  • 1,700
0 votes
0 answers
68 views

Lerna returns 0 found packages

After upgrading lerna from 7 to 8.1.7, I can no longer build my project which resides in a mono-repo. It seems to not find the dependencies of the various packages. $ npx lerna list returns found 0 ...
David B.'s user avatar
  • 169
0 votes
1 answer
46 views

WSO2 website access to front site denied and possibility wrong packages or versions

Im trying to folllow these steps to access the front code but that npm install doesn't install the lerna packages no matter what the node version is. Does anyone knows the solution how i tried to run ...
Marwen's user avatar
  • 15
0 votes
1 answer
24 views

Lerna run script with omitting dev dependencies

We are using Lerna in a typescript mono repo. I have package A which has dev dependency on package B, which has its own dependencies. When I build package A for production usage, I use the following: ...
Avner Levy's user avatar
  • 6,723
0 votes
0 answers
85 views

Lerna and changelogPreset for conventional commits failing to load

I'm wanting to change my Lerna change log preset to use conventionalcommits by doing the following in my lerna.json: // lerna.json "changelogPreset": { "name": "...
Matt Derrick's user avatar
  • 5,724
0 votes
0 answers
45 views

Lerna published packages contain TypeScript source files instead of built JavaScript file

I'm facing an issue with Lerna and GitHub Actions where the published packages contain TypeScript source files (*.ts) from the src directory instead of the compiled JavaScript files from the dist ...
ben ftima wajdi's user avatar
0 votes
0 answers
52 views

Lerna v8 not publishing on GitLab CI/CD

I am implement lerna v8 for my monorepo configuration. I need to publish my new changes in the gitlab registry for our organization. The issue is I am getting an error from the pipeline CI/CD when ...
cristian huichaqueo huicha's user avatar
1 vote
2 answers
88 views

lerna ERR! E409 Failed to save packument

Current Behavior After a failed first attempt at lerna publish (70% of packages got published before failure), I get this message: lerna ERR! E409 Failed to save packument. A common cause is if you ...
Victor Onwukwe's user avatar
0 votes
1 answer
34 views

How to disable color in Lerna logs?

I'm running Lerna in Jenkins I can't find a way to disable colors. The logs are garbled with additional color codes. Log snip from Jenkins: [37;40mlerna[0m [0m[36;40mnotice[0m [0m[35mcli[0m v8.1.3 ...
Eastman's user avatar
  • 105
0 votes
0 answers
20 views

Live refresh with lerna

So I have a project with 2 packages bundled using Lerna. I need to have a live refresh whenever any changes are detected. But here is the catch. The first package is an API run continuously. The ...
russl's user avatar
  • 11
0 votes
0 answers
29 views

Lerna - publish packages a fresh to new registry

I have to migrate a monorepo from one gitlab to another. This monorepo uses lerna to publish packages. Is there a way to (re) publish packages a fresh on a new gitlab's package registry as per ...
forvaidya's user avatar
  • 3,255
1 vote
0 answers
83 views

Uncaught TypeError: Cannot read properties of null (reading 'useContext') while using monorepo setup using lerna

I am using Lerna to setup a monorepo, when I import the package into another application I am getting below errors. react.development.js:210 Warning: Invalid hook call. Hooks can only be called inside ...
shaik Mohd Irfan's user avatar
0 votes
0 answers
18 views

Aliases in lerna

Is there a way to use alias names for packages in lerna monorepo? Let me explain the requirement more precisely. Assume below to be the directory structure. Monorepo contains 3 packages and app ...
0xaks's user avatar
  • 1
0 votes
0 answers
15 views

"does not match the corresponding name on disk" on import in monorep with lerna on WSL2

I just started working on an existing project with a monorepo using Lerna. I use WSL2. The files are on the windows filesystem /mnt/c..., but I only use them from WSL shells. I cloned the repo, built ...
jprmsn's user avatar
  • 25
0 votes
1 answer
148 views

I encountered an error when executing lerna init

Cannot initialize lerna because your package manager has not been configured to use workspaces, and you have not explicitly specified any packages to operate on. how can i solve this problem?I don't ...
baibai's user avatar
  • 1
0 votes
0 answers
88 views

lerna "Assuming all packages changed" for new branches

I have a monorepo with Lerna configured version to independent. the problem is whenever create i a new git branch and run version or publish I get Assuming all packages changed and lerna wants to ...
Amit Wagner's user avatar
  • 3,254
1 vote
0 answers
394 views

Integrating TypeScript-based Tailwind Config with PostCSS inan Nx-Managed Next.js Project

I use lerna and nx for my project and use nx with command npx create-nx-workspace@latest --preset=next for creating my next.js app and use nx g @nx/react:setup-tailwind --project=my-app for setting up ...
radinvafaei's user avatar
0 votes
0 answers
54 views

best way to handle stenciljs shared styles in a monorepo

I'm using lerna to create a monorepo of stenciljs components. My components are in their own folders under my-repo/packages/compOne, my-repo/packages/compTwo, etc. I have shared stylesheets in my-...
Bob Ramsey's user avatar
1 vote
1 answer
267 views

lerna version - how to avoid commits?

Lerna is overall quite a powerfull tool for managing monorepoes in JavaScript with a lot of nice features. However one thing that I really struggle to find recently - is an ability to gain more ...
Slava.In's user avatar
  • 989
0 votes
0 answers
334 views

How to generate derived sourcemaps in a monorepo with Lerna and Vite?

Hi Stack Overflow community, I'm currently working on a project using Vite, and I've run into an issue where the source maps from my own packages are not being included in the develop build, not on ...
Alexis Leite Paracampo's user avatar
0 votes
0 answers
110 views

PM2 not able to resolve import without .ts extension in typescript files

I am creating boilerplate for microservices using express, Typescript and Lerna. My setup is working fine locally but when I use PM2 for prod deployment its giving following error. Error: Directory ...
Manish Mahajan's user avatar
0 votes
0 answers
25 views

How to prevent lerna from creating link of issues

If there are commits like feat: [Org/Repo#123] lerna(with conventionalCommits:true option) converts it to feat: [Org/Repo[#123](remoteOriginUrl/issues/123)] How to prevent lerna from creating auto ...
Jeong Ho Nam's user avatar
0 votes
0 answers
121 views

fn is not a function while loading "./Module" from webpack/container/reference/builder error while implementing module federation

I am trying to connect 2 application using module federation. The shell app is built with nx workspace nx g react:host shell. The remote app is in another workspace that uses lerna. i keep getting the ...
ali Salami's user avatar
0 votes
0 answers
375 views

Lerna commands keep hanging

I try to run different Lerna commands, but then the console freezes at lerna notice cli v8.0.1 It doesn't show any error message, it just freezes. I tried to run the command with --loglevel verbose ...
svenzy's user avatar
  • 1
2 votes
1 answer
327 views

how to yarn link a package in lerna?

I'm working on a project which relies on local lerna packages(project folder is not in lerna folder, they are independent), I want to run yarn link in a lerna package, in order to use yarn link xx in ...
suda moayui's user avatar
0 votes
0 answers
56 views

Using Global Types With Lerna

I have a Lerna project using Typescript with the following structure: packages/ commons/ types/ global.d.ts partner/ user/ partner and user are both Express.js apps. Inside commons I have a ...
TheMachineX's user avatar
0 votes
0 answers
202 views

Lerna is inconsistent when watching detection of changes

I am trying to make a monorepo with lerna, but when i try to watch the workspace with lerna watch it show inconsistent results My project and workflow The following image shows my workflow with : top ...
Ora_Veugle's user avatar
0 votes
0 answers
293 views

How to use NX like Lerna?

my goal is to create Monorepo. I am an Angular Developer, so I expect to start my first project as Angular. But in the future I expect other developer to may use React/Next.js. The point is: I do not ...
Jason Rich Darmawan's user avatar
0 votes
0 answers
58 views

sonarcube is ignoring coverage for non unique filenames within project (in different lerna subpackages)

I'm having an issue where sonar is gathering multiple lcov.info files (each from different lerna subpackages) and where there are some filenames/paths that are repeated across packages, eg src/model/...
tmc's user avatar
  • 474
0 votes
0 answers
36 views

Lerna w/ Nx Is there a way to get console output "simpler"?

The nice graphical flourishes that come with enabling Nx in Lerna does not play nicely when piped to text editors or in Webstorm terminal. Is there a setting similar to --progress=plain in docker that ...
Novaterata's user avatar
  • 4,625
0 votes
0 answers
87 views

Why would Vite not build Typescript definitions on rebuild?

My package.json has "build": "vite build". Whenever I run yarn build, the TS definitions show up where I expect. When I run it again, the TS definitions disappear. I can re-run the ...
Dave Stein's user avatar
  • 9,196
0 votes
0 answers
364 views

CI/CD with pnpm workspaces + lerna 7.x

I have created a monorepo with pnpm workspaces and Lerna. The applications live under packages/* and some libraries under lib/* I have one library under lib that needs to be built before being ...
Tushar Sharma's user avatar
0 votes
1 answer
283 views

Is it possible to bump version in nx / lerna monorepo without overriding * project references in dependencies?

Let us say I have an nx/lerna monorepo with two projects, A and B, where A depends on B. So the package.json-s look like this { "name": "A", "version": "1.2.3&...
David Vonka's user avatar
0 votes
1 answer
469 views

How to share context between Lerna packages with React and @tanstack/react-query?

In my monorepo built with Lerna, I have two packages: app and components General information The app package is a clean install of a Remix Run app. The components package is a simple component library ...
KiwiCoder's user avatar
  • 1,504
0 votes
0 answers
50 views

Debug linked modules using WebStorm

I'm attempting to debug a Next.js project within a Lerna monorepo using WebStorm. Currently, WebStorm doesn't halt at the source files, although it does stop at breakpoints within the code located in ...
Matías González's user avatar
0 votes
1 answer
236 views

How can I remove parent path when importing a package from same monorepo?

I have a nodejs project which uses nx to manage multiple packages, the structure is: packages/my-proj1/src/*.ts packages/my-proj2/src/*.ts ... the my-prod2 has dependency on my-proj1, so in the ...
Joey Yi Zhao's user avatar
  • 41.5k
0 votes
0 answers
69 views

Lerna is not rendering inquirer prompt properly

I am using lerna to handle the monorepo project structure. When I run below code const question = [{ type: 'input', name: 'permission', message: chalk.red(logMessages....
Amit Limbasiya's user avatar
0 votes
0 answers
81 views

Use RTK Query endpoints as a package in a lerna monorepo

I have Lerna Monorepo with an api folder inside of the packages folder. api folder is just RTKQuery endpoints which code split into several other folders as described in Code Splitting. I have two ...
Amir Rezvani's user avatar
  • 1,434
1 vote
1 answer
159 views

Forking a yarn workspace using lerna and publishing 2 packages under the company namespace

Given a repo using yarn workspace and lerna. This workspace have two packages main-pack and sub-pack. The main-pack does reference sub-pack. I want to fork it and publish a patch on npm under my ...
Philippe's user avatar
0 votes
1 answer
2k views

Lerna problem using conventional commits with an existing project

I've been manually managing my package versions and changelog.md file up to the 5.2.0. Now I'm trying to integrate Lerna to manage my package but facing an issue while doing that. Issue: lerna version ...
Ram Krishna Kumar's user avatar
1 vote
0 answers
634 views

Lerna return lerna success run No packages found with the lifecycle script 'build'

when i try to run lerna run build --stream it runs a long time and fails with lerna success run No packages found with the lifecycle script 'build'. The repository was up to date and i have 0 changes ...
Caychu's user avatar
  • 11
1 vote
0 answers
93 views

Lerna watch not detecting changes on oracle linux machine

We are having a mono repo react app and trying to integrate lerna into it. Environment details OS - Oracle Linux OS Node version - 16.8.1 React version - 17.0.1 Lerna version - 7.1.1 While running ...
Karthik's user avatar
  • 11
0 votes
0 answers
309 views

In a monorepo, which dependencies should be peer dependencies rather than regular dependencies? And how to make yarn install peer deps in dev env?

I am working on upgrading a repository from an ancient version of Lerna to have a more modern build tooling, but it's something that I'm learning about as I go. Here's the repo. Now, the issue that I'...
danielhep's user avatar
  • 356
-1 votes
1 answer
223 views

Prevent Lerna from making breaking version updates

I am looking for a way to restrict Lerna from major version updates during CI, as they will likely create dependency issues. My intuition is to write an npm lifecycle script that executes upon version ...
Maxim Kirilov's user avatar
3 votes
0 answers
269 views

How to make a lerna monorepo build directly for production?

I have a fairly complex monorepo setup using learna. Imagine I have multiple packages "packages": [ "@myorg/package1", "@otherorg/package2", "@anotherorg/...
heapOverflow's user avatar
  • 1,235
1 vote
0 answers
619 views

npm Workspaces linking "dist" directory

Simplyfied I've got the following project structure: workspace/ ├─ package.json <-- With npm workspaces (see below) ├─ packages/ │ ├─ angular/ <-- Angular ...
nioe's user avatar
  • 836
1 vote
0 answers
478 views

Patch-packages in sub packages didn`t work well when I use lerna to install all packages

I have one project which has one packages folder and it contains three subfolders. The three subfolders have their own package.json file. One of them has patch-package npm package and "...
tcguoxing's user avatar
1 vote
0 answers
84 views

Internal Lerna package import in VSCode on wsl gives typescript error

I am using WSL on Windows, and typescript in VSCode does not find imported internal modules, as in: import { Something } from "@namespace/package"; where namespace/package is in the same ...
Jeiger's user avatar
  • 11
0 votes
0 answers
514 views

Compiled lerna project is not resolving modules of a common library package

I have a project that I am using lerna and npm workspaces in. There is the root folder, where my lerna.json etc is. Then there is the packages folder. Inside the packages folder, there are 3 packages: ...
ThePerplexedOne's user avatar

1
2 3 4 5
14