backstage: πŸ› Bug Report: (create-app) Couldn't find package "@swagger-api/apidom-reference@=0.68.1" required by "swagger-client@=3.19.0-beta.7" on the "npm" registry.

πŸ“œ Description

npx @backstage/create-app@latest fails to yarn install. Note that this happens both with 0.4.36 and 0.4.37.

πŸ‘ Expected behavior

Backstage should’ve been bootstrapped successfully.

πŸ‘Ž Actual Behavior with Screenshots

...
 > @trendyol-js/openstack-swift-sdk > axios-cached-dns-resolve > babel-polyfill > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
warning workspace-aggregator-99a6b024-9430-4465-a192-1a1df1c4f627 > backend > @backstage/plugin-techdocs-backend > @backstage/plugin-techdocs-node > @trendyol-js/openstack-swift-sdk > axios-cached-dns-resolve > babel-polyfill > babel-runtime > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
Error: Couldn't find package "@swagger-api/apidom-json-pointer@=0.68.1" required by "swagger-client@=3.19.0-beta.7" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/mhentges/.nvm/versions/node/v16.19.1/lib/node_modules/yarn/lib/cli.js:721:66)
    at new MessageError (/Users/mhentges/.nvm/versions/node/v16.19.1/lib/node_modules/yarn/lib/cli.js:750:123)
    at PackageRequest.<anonymous> (/Users/mhentges/.nvm/versions/node/v16.19.1/lib/node_modules/yarn/lib/cli.js:36590:17)
    at Generator.throw (<anonymous>)
    at step (/Users/mhentges/.nvm/versions/node/v16.19.1/lib/node_modules/yarn/lib/cli.js:310:30)
    at /Users/mhentges/.nvm/versions/node/v16.19.1/lib/node_modules/yarn/lib/cli.js:323:13
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Couldn't find package "@swagger-api/apidom-reference@=0.68.1" required by "swagger-client@=3.19.0-beta.7" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/mhentges/.nvm/versions/node/v16.19.1/lib/node_modules/yarn/lib/cli.js:721:66)
    at new MessageError (/Users/mhentges/.nvm/versions/node/v16.19.1/lib/node_modules/yarn/lib/cli.js:750:123)
    at PackageRequest.<anonymous> (/Users/mhentges/.nvm/versions/node/v16.19.1/lib/node_modules/yarn/lib/cli.js:36590:17)
    at Generator.throw (<anonymous>)
    at step (/Users/mhentges/.nvm/versions/node/v16.19.1/lib/node_modules/yarn/lib/cli.js:310:30)
    at /Users/mhentges/.nvm/versions/node/v16.19.1/lib/node_modules/yarn/lib/cli.js:323:13
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Couldn't find package "@swagger-api/apidom-ns-openapi-3-1@=0.68.1" required by "swagger-client@=3.19.0-beta.7" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/mhentges/.nvm/versions/node/v16.19.1/lib/node_modules/yarn/lib/cli.js:721:66)
    at new MessageError (/Users/mhentges/.nvm/versions/node/v16.19.1/lib/node_modules/yarn/lib/cli.js:750:123)
    at PackageRequest.<anonymous> (/Users/mhentges/.nvm/versions/node/v16.19.1/lib/node_modules/yarn/lib/cli.js:36590:17)
    at Generator.throw (<anonymous>)
    at step (/Users/mhentges/.nvm/versions/node/v16.19.1/lib/node_modules/yarn/lib/cli.js:310:30)
    at /Users/mhentges/.nvm/versions/node/v16.19.1/lib/node_modules/yarn/lib/cli.js:323:13
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
  executing     yarn install βœ–

πŸ‘Ÿ Reproduction steps

npx @backstage/create-app@latest, but due to (I’m assuming?) unpinned dependencies, this may be un-reproducible in the future.

πŸ“ƒ Provide the context for the Bug.

No response

πŸ–₯️ Your Environment

$ yarn backstage-cli info
yarn run v1.22.19
error Command "backstage-cli" not found.

πŸ˜”

I’m on an Apple M1 Max

πŸ‘€ Have you spent some time to check if this bug has been raised before?

  • I checked and didn’t find similar issue

🏒 Have you read the Code of Conduct?

Are you willing to submit PR?

None

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 4
  • Comments: 19 (8 by maintainers)

Most upvoted comments

Hi! Looks like there’s a problem with swagger-ui, release went out 3 hours ago and this issue just opened. Hoping for a swift new release 🀞

edit: This release specifically https://github.com/swagger-api/swagger-ui/releases/tag/v4.16.0

Please have a look at this comment: https://github.com/swagger-api/swagger-ui/issues/8418#issuecomment-1445155732

The fix release of SwaggerUI will be comming shortly.

FYI: I used yarn resolutions as a workaround

packages.json

  "resolutions": {
    "swagger-client": "3.18.4"
  }

Same here ! This issue can be closed