It seems like something was broken in version 9.11.3, as I can’t add it (and the latest version, 9.12.2) to the project.
Test environment:
Dockerfile
FROM node:20.18
RUN yarn add @atlassian/aui@9.12.2
Here’s what I get when building the Dockerfile:
logs
Deploying '<unknown> Dockerfile: Dockerfile'…
[+] Building 4.9s (5/5) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 89B 0.0s
=> [internal] load metadata for docker.io/library/node:20.18 0.7s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> CACHED [1/2] FROM docker.io/library/node:20.18@sha256:196a5fcd13db4362fb9c0ec5391db36ec954c65d6b0d0e5d37f59c7dc992069 0.0s
=> ERROR [2/2] RUN yarn add @atlassian/aui@9.12.2 4.2s
------
> [2/2] RUN yarn add @atlassian/aui@9.12.2:
0.385 yarn add v1.22.22
0.395 info No lockfile found.
0.412 [1/4] Resolving packages...
2.463 error Package "select2" refers to a non-existing file '"/src/js-vendor/select2"'.
2.463 info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
4.129 Error: Package "jquery-aop" refers to a non-existing file '"/src/js-vendor/jquery-aop"'.
4.129 at MessageError.ExtendableBuiltin (/opt/yarn-v1.22.22/lib/cli.js:721:66)
4.129 at new MessageError (/opt/yarn-v1.22.22/lib/cli.js:750:123)
4.129 at FileResolver.<anonymous> (/opt/yarn-v1.22.22/lib/cli.js:50037:15)
4.129 at Generator.next (<anonymous>)
4.129 at step (/opt/yarn-v1.22.22/lib/cli.js:310:30)
4.129 at /opt/yarn-v1.22.22/lib/cli.js:321:13
4.129 Error: Package "jquery-form" refers to a non-existing file '"/src/js-vendor/jquery-form"'.
4.129 at MessageError.ExtendableBuiltin (/opt/yarn-v1.22.22/lib/cli.js:721:66)
4.129 at new MessageError (/opt/yarn-v1.22.22/lib/cli.js:750:123)
4.129 at FileResolver.<anonymous> (/opt/yarn-v1.22.22/lib/cli.js:50037:15)
4.129 at Generator.next (<anonymous>)
4.129 at step (/opt/yarn-v1.22.22/lib/cli.js:310:30)
4.129 at /opt/yarn-v1.22.22/lib/cli.js:321:13
4.129 Error: Package "tablesorter" refers to a non-existing file '"/src/js-vendor/tablesorter"'.
4.129 at MessageError.ExtendableBuiltin (/opt/yarn-v1.22.22/lib/cli.js:721:66)
4.129 at new MessageError (/opt/yarn-v1.22.22/lib/cli.js:750:123)
4.129 at FileResolver.<anonymous> (/opt/yarn-v1.22.22/lib/cli.js:50037:15)
4.129 at Generator.next (<anonymous>)
4.129 at step (/opt/yarn-v1.22.22/lib/cli.js:310:30)
4.129 at /opt/yarn-v1.22.22/lib/cli.js:321:13
4.129 Error: Package "jquery.hotkeys" refers to a non-existing file '"/src/js-vendor/jquery.hotkeys"'.
4.129 at MessageError.ExtendableBuiltin (/opt/yarn-v1.22.22/lib/cli.js:721:66)
4.129 at new MessageError (/opt/yarn-v1.22.22/lib/cli.js:750:123)
4.129 at FileResolver.<anonymous> (/opt/yarn-v1.22.22/lib/cli.js:50037:15)
4.129 at Generator.next (<anonymous>)
4.129 at step (/opt/yarn-v1.22.22/lib/cli.js:310:30)
4.129 at /opt/yarn-v1.22.22/lib/cli.js:321:13
------
Dockerfile:2
--------------------
1 | FROM node:20.18
2 | >>> RUN yarn add @atlassian/aui@9.12.2
3 |
4 |
--------------------
ERROR: failed to solve: process "/bin/sh -c yarn add @atlassian/aui@9.12.2" did not complete successfully: exit code: 1
Failed to deploy '<unknown> Dockerfile: Dockerfile': Image build failed with exit code 1.
The same error appears when I add aui to a real project or try to update its version.
The last working version is 9.11.2.
Is there any workaround to make 9.11.3+ versions work?