Questions tagged [lerna]

Lerna was created to streamline the development of JavaScript projects by consolidating them into a single git repository that houses multiple interconnected npm packages.

Encountering issues with Vue build on Heroku while implementing Lerna

Currently attempting to set up a Lerna monorepo on Heroku with an Express backend and Vue frontend. The components are stored within /packages/server and /packages/frontend respectively. The goal is to compile the Vue frontend during deployment and serve i ...

Increase the version and release packages from one branch while preserving tags in a separate branch

I have decided to consolidate my project, which consists of multiple interdependent packages, into a monorepo using Lerna. Our development process follows a methodology similar to the Gitflow workflow. The key principle is to make all code changes in the d ...

Issue with npm package installation causing malfunction

Upon running the command npm install -g lerna, it gets executed without any errors. However, when I try to run lerna --version, I receive an output stating "lerna: command not found". Potential Solution: Perhaps if I somehow manage to install it in / ...

What are the best steps to follow when creating a new package within a lerna monorepo?

I have recently come into possession of a monorepo that contains a packages folder housing all the current packages. My goal is to include a new main package that is essential for my existing panel package, which is currently at version 0.34.0. Since I fre ...

The process of running `npm install` within a Docker environment consistently results in data

I have been encountering a recurring issue with all the docker images I attempt to create, where they become corrupted during the npm install process. Specifically, two of the images displayed errors like: [stage-1 4/5] RUN npm install -g pm2 --loglevel w ...

[Vuetify alert]: The server-side rendered virtual DOM structure does not align with the client-side content (Nuxt, Vue, and lerna monorepo)

I am currently facing an issue while attempting to run a basic Nuxt application within a lerna monorepo, which includes an external Vue component constructed using vue-cli. Initially, the page displays the content of the component (rendered by the server) ...

managing static assets within a storybook monorepo

I have a lerna + yarn workspaces monorepo with multiple packages and components, each one containing its own /assets folder with static images: /packages      /component1             /assets ...

Enhancing the node module of a subpackage within Lerna: A step-by-step guide

I recently integrated lerna into my workflow to streamline the installation of all node modules for multiple sub packages with just one command. Currently, I'm only utilizing the lerna bootstrap feature. Here's a snippet from my lerna.json: { "lerna ...

It appears that when importing from a shared package in lerna, the name must include "src" at the end for Typescript or Javascript files

I am currently working on a straightforward lerna project structure as shown below: Project | +-- packages | | | +-- shared | | | | | +-- src | | | | | +-- index.ts | | +-- someDir | | | +-- usesShared | ...

Encountering error message "no such file or directory" while attempting to run lerna bootstrap

Struggling to execute the following command lerna bootstrap --hoist On a project I downloaded from GitHub. The steps are to Download Then run lerna bootstrap --hoist However, every time I try running the lerna bootstrap --hoist command, it fails with an ...

Unable to locate a compatible version for the email address [email protected]

I'm facing a dilemma while working on a lerna project that utilizes npm. I am unsure whether the issue lies within the lerna setup or npm itself. The project structure is organized as follows: - package.json (root) - package-lock.json - lerna.json - ...

Unable to locate the specified nested module during the import process

Imagine a scenario where we have two packages, namely package1 and package2. When package2 attempts to import the module from package1, an error is thrown stating that the module is not found. The import statement in question looks like this: import { ... ...

What is the process for setting up the auth parameter while utilizing lerna publish?

I configured my .npmrc file to publish to a private registry without exposing auth credentials. How can I pass the _auth configuration when executing the lerna publish command? It seems that lerna publish does not support the use of the _auth flag: https: ...

The code encountered an error because it tried to access the property 'isServer' from an undefined value

I encountered an error when attempting to run yarn install in my project folder. yarn install v1.22.15 [1/5] Validating package.json... [2/5] Resolving packages... [3/5] Fetching packages... error An unexpected error occurred: "https://registry.y ...

How can global resolutions be defined in Yarn 1?

Recently, I've been utilizing Node 10 for my automation pipelines. However, when trying to execute yarn global add lerna, a new transitive dependency called @npmcli/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b0d6c3f0819e819 ...

What is the best practice for npm/yarn workspaces: should packages use src or dist for consumption

Our frontend app will be structured within a monorepo. The plan is to organize react UI components into a package folder located at "/packages/ui-components", while keeping the app itself in an "/apps/app" folder. The goal is to have the app import and con ...

Is it possible to import a package from a monorepo located in a different repository?

Currently, I have successfully set up a create-react-app and a storybook packages in a lerna monorepo. My goal now is to utilize the components created within the storybook package in an entirely fresh repository. I attempted using npm install git://githu ...