Cannot install scaffolder-backend-module-http-request in Backstage
See original GitHub issueExpected Behavior
Running yarn install
should succeed.
Current Behavior
I see this error: error An unexpected error occurred: "expected workspace package to exist for \"@types/webpack\"".
**cd packages/backend**
**yarn add @roadiehq/scaffolder-backend-module-http-request**
yarn add v1.22.1
[1/4] 🔍 Resolving packages...
warning Lockfile has incorrect entry for "ws@7.4.5". Ignoring it.
[2/4] 🚚 Fetching packages...
info esbuild-android-arm64@0.14.10: The platform "darwin" is incompatible with this module.
# [...]
**error An unexpected error occurred: "expected workspace package to exist for \"@types/webpack\"".**
info If you think this is a bug, please open a bug report with the information provided in yarn-error.log
Manually editing the packages/backend/package.json
to add @roadiehq/scaffolder-backend-module-http-request
and running yarn install
works successfully.
Steps to Reproduce
See above.
Possible Solution
Possibly related to https://github.com/yarnpkg/yarn/issues/7807?
Your Environment
I’m on an M1 Mac Air
yarn --version
1.22.1
node --version
v16.4.0
My backend package is:
{
"name": "example-backend",
"version": "0.2.59",
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
@roadiehq/scaffolder-backend-module-http-request - npm
Welcome to the http actions for the scaffolder-backend . This contains one action: http:backstage:request . The http:backstage:request action ...
Read more >[plugin-scaffolder-backend] breaks on try generate in a new ...
When a new project is created using the @backstage/create-app , the scaffolder functionality isn't working.
Read more >Installing @backstage/plugin-scaffolder
You'll need to add the plugin to the backend 's router. You can do this by creating a file called packages/backend/src/plugins/scaffolder.ts with the...
Read more >backstage/plugin-scaffolder-backend v1.6.0 - npm.io
To check if you already have the package, look under packages/backend/package.json , in the dependencies block, for @backstage/plugin-scaffolder-backend . The ...
Read more >Spotify Plugins for Backstage
Spotify Plugins for Backstage is a bundle subscription — made with love at Spotify — for Backstage adopters to accelerate their developer experience...
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
Once again, manually adding the package works ok.
@Xantier I am still experiencing this problem. Here’s my reproduction steps: