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.

Shareable configuration on monorepo fails due to incompatible lockfiles

See original GitHub issue

Hi there,

Considering this directory structure:

ParentProject
   package.json
   .browserlistrc
   ...
   src
        packages
            foo
                package.json
                ...

How can have the project foo have access to the .browserlistrc resolved config from ParentProject?


EDIT: After further investigation, we realized the root cause of this issue is that foo project had an outdated lock file that was causing browserslist to resolve to a different query instead of using the same dependencies that are defined in the package which contains .browserlistrc

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
aicommented, Mar 31, 2020

If it is a bug, can you provide extra information to reproduce the problem? Maybe create a simple example?

I am going to sleep right now and will answer you tomorrow.

0reactions
mitermayercommented, Apr 1, 2020

If you have an idea of how we can change Browserslist to do it, let’s discuss it in separated issue. This one will b about different results because of different versions in lock files.

I will create a separate issue for us to further elaborate on it

If your use Browserslist in Atlassian, it will be nice if you will talk with a manager about supporting Browserslist. We are collecting funds for security refactoring, which will prevent publishing malware like that ESLint incident. The company will win from this refactoring. https://opencollective.com/browserslist

Will forward this internally


I updated the title and issue description to better align with the problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

Turning a Node.js Monolith into a Monorepo without ... - InfoQ
Splitting monoliths into services creates complexity in maintaining multiple repositories (one per service) with separate (yet interdependent) ...
Read more >
Configuration Options - Renovate Docs
Any config you define applies to the whole repository (e.g. if you have a monorepo). You can store your Renovate configuration file in...
Read more >
Yarn install failing on GitHub Actions - Stack Overflow
By default, Yarn will throw an exception on yarn install if it detects that a package doesn't match the checksum stored within the...
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 >
Advanced package manager features for npm, Yarn, and pnpm
When using the default configuration, pnpm and Yarn Berry do not use ... go wrong in a monorepo project where the hoisting algorithm...
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