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.

Unable to add packages or plugins | expected workspace package to exist for X

See original GitHub issue

Current Behavior

image

I try to yarn add @backstage/plugin-catalog-backend-module-ldap and it errors because apparently I need css-loader installed in my workspace. 🤔

Expected Behavior

The plugin just installs without error.

Steps to Reproduce

Create a new backstage app and try to yarn add @backstage/plugin-catalog-backend-module-ldap in packages/backend.

Context

I’m trying to import users and groups from an LDAP-compatible service. I tried step 1 of the official documentation and failed.

Your Environment

  • NodeJS Version (v12): 14.16.1
  • Operating System and Version (e.g. Ubuntu 14.04): macOS Big Sur
  • Browser Information: N/A

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
benjdlambertcommented, Jul 9, 2021

This is actually something that effects all installs of things in the workspace. Been unable to work out what the issue is though. @OrkoHunter I think had a workaround, but you can add the package explicitly in the package.json manually and run yarn install for now

1reaction
benjdlambertcommented, Jul 13, 2021

Just following up with this, looks like upgrading to latest 1.x release of yarn doesn’t help, but updating to berry (2.x) seems to fix the issue too and I can install as expected. Maybe we can fix this short term for now, but look at moving to 2.x otherwise I think this is going to keep cropping up and causing issues blocking us from upgrading versions.

@Rugvip I know you had some thoughts on berry or had tried it, what were your findings?

Read more comments on GitHub >

github_iconTop Results From Across the Web

yarnpkg - Why does Yarn throw "Invariant Violation: expected ...
Run yarn to install all dependencies; Run yarn upgrade-interactive. But I get the exact same error. I went scavenging for answers and none...
Read more >
Problems and Solutions - TerriaJS
Problem. When using yarn workspaces to develop a TerriaMap against a custom version of terriajs yarn install throws error. An unexpected error occurred ......
Read more >
Error Codes | Yarn - Package Manager
This informational message occurs when Yarn wishes to let you know that a package will need to be built for the installation to...
Read more >
Troubleshooting - Unity - Manual
Back up and then delete the package sources in your project's Packages folder, leaving only the manifest.json file. Then try to reload the...
Read more >
Introducing Yarn 2 ! - DEV Community ‍ ‍
are now aware of workspaces; Running yarn install can be made optional ... And since we now allow building Yarn plugins, you'll be...
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