Regression: project is not working anymore from 6.0.8 -> 6.1.0 (in lerna monorepos)
See original GitHub issueBug 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:
- Created 5 years ago
- Reactions:17
- Comments:30 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Added to the top of our backlog
@alexeagle, @hansl, could we also have the fix on
6.2.x
please? Moving to7.0.0-rc*
creates other problems with dependencies that are not ready for7.0
…