Building a Jupyter Lab Conda Package fails when executing "ensure-max-old-space webpack --config webpack.prod.config.js"

Building a Jupyter Lab Conda Package (Jupyter lab 2.2.9) fails when executing “ensure-max-old-space webpack --config webpack.prod.config.js”. Was able to execute the conda build successfully on Aug-21-2021(Jupyter Lab 2.2.9) with the commands below the conda build failed today (Oct-4-2021) running the same commands trying to rebuild (Jupyter Lab 2.2.9)

Executing These commands:

RUN conda install --quiet --yes
‘conda-build’ &&
conda clean --all -f -y

Results in this stack trace

Installing build dependencies with npm. This may take a while…
16:31:58 > node /tmp/pip-req-build-g2rhr6rw/jupyterlab/staging/yarn.js install
16:31:58 yarn install v1.21.1
16:31:58 [1/5] Validating package.json…
16:31:58 [2/5] Resolving packages…
16:31:58 [3/5] Fetching packages…
16:32:02 info fsevents@2.1.3: The platform “linux” is incompatible with this module.
16:32:02 info “fsevents@2.1.3” is an optional dependency and failed compatibility check. Excluding it from installation.
16:32:02 info fsevents@1.2.13: The platform “linux” is incompatible with this module.
16:32:02 info “fsevents@1.2.13” is an optional dependency and failed compatibility check. Excluding it from installation.
16:32:02 [4/5] Linking dependencies…
16:32:02 warning " > @lumino/coreutils@1.5.3" has unmet peer dependency “crypto@1.0.1”.
16:32:21 [5/5] Building fresh packages…
16:32:21 success Saved lockfile.
16:32:21 Done in 26.54s.
16:32:21 > node /tmp/pip-req-build-g2rhr6rw/jupyterlab/staging/yarn.js run build:prod
16:32:22 yarn run v1.21.1
16:32:22 $ ensure-max-old-space webpack --config webpack.prod.config.js
16:32:25 node:internal/crypto/hash:67
16:32:25 this[kHandle] = new _Hash(algorithm, xofLen);
16:32:25 ^
16:32:25
16:32:25 Error: error:0308010C:digital envelope routines::unsupported
16:32:25 at new Hash (node:internal/crypto/hash:67:19)
16:32:25 at Object.createHash (node:crypto:130:10)
16:32:25 at module.exports (/tmp/pip-req-build-g2rhr6rw/jupyterlab/staging/node_modules/webpack/lib/util/createHash.js:135:53)
16:32:25 at NormalModule._initBuildHash (/tmp/pip-req-build-g2rhr6rw/jupyterlab/staging/node_modules/webpack/lib/NormalModule.js:417:16)
16:32:25 at handleParseError (/tmp/pip-req-build-g2rhr6rw/jupyterlab/staging/node_modules/webpack/lib/NormalModule.js:471:10)
16:32:25 at /tmp/pip-req-build-g2rhr6rw/jupyterlab/staging/node_modules/webpack/lib/NormalModule.js:503:5
16:32:25 at /tmp/pip-req-build-g2rhr6rw/jupyterlab/staging/node_modules/webpack/lib/NormalModule.js:358:12
16:32:25 at /tmp/pip-req-build-g2rhr6rw/jupyterlab/staging/node_modules/loader-runner/lib/LoaderRunner.js:373:3
16:32:25 at iterateNormalLoaders (/tmp/pip-req-build-g2rhr6rw/jupyterlab/staging/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
16:32:25 at Array. (/tmp/pip-req-build-g2rhr6rw/jupyterlab/staging/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
16:32:25 at Storage.finished (/tmp/pip-req-build-g2rhr6rw/jupyterlab/staging/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
16:32:25 at /tmp/pip-req-build-g2rhr6rw/jupyterlab/staging/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
16:32:25 at /tmp/pip-req-build-g2rhr6rw/jupyterlab/staging/node_modules/graceful-fs/graceful-fs.js:123:16
16:32:25 at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
16:32:25 opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error’ ],
16:32:25 library: ‘digital envelope routines’,
16:32:25 reason: ‘unsupported’,
16:32:25 code: ‘ERR_OSSL_EVP_UNSUPPORTED’
16:32:25 }
16:32:25 node:child_process:867
16:32:25 throw err;
16:32:25 ^
16:32:25
16:32:25 Error: Command failed: /tmp/pip-req-build-g2rhr6rw/jupyterlab/staging/node_modules/.bin/webpack --config webpack.prod.config.js
16:32:25 at checkExecSyncError (node:child_process:826:11)
16:32:25 at Object.execFileSync (node:child_process:864:15)
16:32:25 at Object. (/tmp/pip-req-build-g2rhr6rw/jupyterlab/staging/node_modules/@jupyterlab/buildutils/lib/ensure-max-old-space.js:38:17)
16:32:25 at Module._compile (node:internal/modules/cjs/loader:1101:14)
16:32:25 at Object.Module._extensions…js (node:internal/modules/cjs/loader:1153:10)
16:32:25 at Module.load (node:internal/modules/cjs/loader:981:32)
16:32:25 at Function.Module._load (node:internal/modules/cjs/loader:822:12)
16:32:25 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
16:32:25 at node:internal/main/run_main_module:17:47 {
16:32:25 status: 1,
16:32:25 signal: null,
16:32:25 output: [ null, null, null ],
16:32:25 pid: 175,
16:32:25 stdout: null,
16:32:25 stderr: null
16:32:25 }
16:32:25 error Command failed with exit code 1.