janus-idp / backstage-showcase

This repo is moving to https://github.com/redhat-developer/red-hat-developer-hub

Home Page:https://showcase.janus-idp.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Techdocs backend dynamic plugin missing the `@smithy/util-utf8` dependencies in `node_modules`

davidfestal opened this issue · comments

When doing a yarn install --production --frozen-lockfile in the dist-dynamic folder of the techdocs backend plugin, we get the following warning:

[dfestal@dfestal-thinkpadp1gen2 dist-dynamic]$ yarn install --production
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
warning Pattern ["@smithy/util-utf8@^2.0.0"] is trying to unpack in the same destination "/home/dfestal/.cache/yarn/v6/npm-@aws-sdk-util-utf8-browser-2.0.0-b4da87566ea7757435e153799df9da717262ad42-integrity/node_modules/@aws-sdk/util-utf8-browser" as pattern ["@aws-sdk/util-utf8-browser@npm:@smithy/util-utf8@^2.0.0","@aws-sdk/util-utf8-browser@^3.0.0","@aws-sdk/util-utf8-browser@^3.0.0","@aws-sdk/util-utf8-browser@^3.0.0"]. This could result in non-deterministic behavior, skipping.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 10.09s.

And the @smithy/util-utf8 cannot be found in the node_modules.

It seems that yarn install cannot download a transitive dependency to @smithy/util-utf8@^2.0.0 when the resolutions contain the following:

  "resolutions": {
    "@aws-sdk/util-utf8-browser": "npm:@smithy/util-utf8@^2.0.0"
  }

which we have to do due to some other issue.

This ends up in the techdocs plugin not loaded dynamically at start.