question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Regression: project is not working anymore from 6.0.8 -> 6.1.0 (in lerna monorepos)

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)

- [x] all

Repro steps

Our angular/cli project ist located as one package of a larger lerna monorepo. We also make use of yarn workspaces, so all (or most) dependencies are hoisted within one single root node_modules folder. The resulting structure is something like

- node_modules <-- angular dependencies installed here
  - @angular
    - cli
    - core
    - ...
- packages
  - angular-app
    - package.json <-- angular dependencies defined here
    - src
    - ....
- package.json <-- no angular dependencies defined here

this line now (as of 6.1.0) prevents the project from working (at all) because relativePotential.startsWith('..') === true because in our structure relativePotential = ../../node_modules/@angular/core/package.json

everything was working fine with 6.0.8

The log given by the failure

You seem to not be depending on “@angular/core” and/or “rxjs”. This is an error.

Desired functionality

I can work on my angular project with latest versions of everything

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:17
  • Comments:30 (1 by maintainers)

github_iconTop GitHub Comments

15reactions
alexeaglecommented, Aug 10, 2018

Added to the top of our backlog

5reactions
ptitjescommented, Oct 11, 2018

@alexeagle, @hansl, could we also have the fix on 6.2.x please? Moving to 7.0.0-rc* creates other problems with dependencies that are not ready for 7.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Manage Monorepos With Lerna - DigitalOcean
Step 1 — Installing Lerna and Initializing the Project​​ In this step, you will install Lerna and set up your project. With Lerna,...
Read more >
Things I wish I had known when I started JavaScript monorepo ...
The reason is simple: all packages of the monorepo will be recursively installed by running npm install from monorepo root. The recursive ...
Read more >
Why Lerna and Yarn Workspaces is a Perfect Match for ...
In short, a so-called Mono-Repo is a (git) repository that houses multiple projects. Such projects are called workspaces or packages. In ...
Read more >
Starting with Monorepos using Lerna - Joel H. Gomez Paredes
To solve some problems we can use a tool called Lerna. Lerna is a tool that optimizes the workflow around managing multi-package repositories...
Read more >
Setting up a monorepo with Lerna for a TypeScript project
As Lerna is intended to be used with Node.js, not TypeScript, we will need to add some configuration to make it work. We'll...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found