Skip to content

fix: project-config-secrets throwing type error

Luboš Matejčík requested to merge fix/env-undefined into main

The MR hotfixes type error.

Steps to reproduce:

  • Run project-config-secrets
  • See:
catladder $ project-config-secrets
TypeError: Cannot read properties of undefined (reading 'replace')
    at /code/wolfpak/node_modules/@catladder/cli/dist/bundles/cli/index.js:1:197801
    at Array.map (<anonymous>)
    at /code/wolfpak/node_modules/@catladder/cli/dist/bundles/cli/index.js:1:197579
    at Array.flatMap (<anonymous>)
    at /code/wolfpak/node_modules/@catladder/cli/dist/bundles/cli/index.js:1:197523
    at step (/code/wolfpak/node_modules/@catladder/cli/dist/bundles/cli/index.js:1:192874)
    at Object.next (/code/wolfpak/node_modules/@catladder/cli/dist/bundles/cli/index.js:1:192084)
    at fulfilled (/code/wolfpak/node_modules/@catladder/cli/dist/bundles/cli/index.js:1:191548)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

This is a hotfix. There is underlaying issue with types - undefined in value is not allowed according to types.

Merge request reports