geert-janklaps / generator-btp-diagram-icons

Generate SAP Business Technology Platform diagram icons
MIT License
11 stars 2 forks source link

The generator is not working with node14js. #1

Open ptesny opened 1 year ago

ptesny commented 1 year ago

The generator is not working with node14js. It errors with element.Category.replaceAll is not a function

$ node -v
v14.18.2

$ npm install -g yo generator-btp-diagram-icons
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated readdir-scoped-modules@1.1.0: This functionality has been moved to @npmcli/fs
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated

added 566 packages, removed 41 packages, changed 692 packages, and audited 1259 packages in 2m

125 packages are looking for funding
  run `npm fund` for details

22 vulnerabilities (8 moderate, 10 high, 4 critical)

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

$ yo btp-diagram-icons

     _-----_     ╭──────────────────────────╮
    |       |    │    Welcome to the SAP    │
    |--(o)--|    │    Business Technology   │
   `---------´   │  Platform (BTP) diagram  │
    ( _´U`_ )    │     icon generator !     │
    /___A___\   /╰──────────────────────────╯
     |  ~  |     
   __'.___.'__   
 ´   `  |° ´ Y ` 

? Do you want to generate circled icons? Yes
? Do you want to generate SAP icons? Yes
? Do you want to group icons by category? Yes
Getting services from SAP discovery-center
Downloading service icons
Error btp-diagram-icons 

element.Category.replaceAll is not a function

However it looks like it working with node16js.

$ nvm use 16
Now using node v16.16.0 (npm v8.11.0)

$ npm install -g yo generator-btp-diagram-icons
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm WARN deprecated readdir-scoped-modules@1.1.0: This functionality has been moved to @npmcli/fs
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated

added 1258 packages, and audited 1259 packages in 44s

125 packages are looking for funding
  run `npm fund` for details

22 vulnerabilities (8 moderate, 10 high, 4 critical)

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

$ yo btp-diagram-icons

     _-----_     ╭──────────────────────────╮
    |       |    │    Welcome to the SAP    │
    |--(o)--|    │    Business Technology   │
   `---------´   │  Platform (BTP) diagram  │
    ( _´U`_ )    │     icon generator !     │
    /___A___\   /╰──────────────────────────╯
     |  ~  |     
   __'.___.'__   
 ´   `  |° ´ Y ` 

? Do you want to generate circled icons? Yes
? Do you want to generate SAP icons? Yes
? Do you want to group icons by category? Yes
Getting services from SAP discovery-center
Downloading service icons
Processing: SAP AI Core
Processing: SAP AI Launchpad
Processing: SAP S/4HANA Cloud for intelligent intercompany reconciliation
Processing: Data Attribute Recommendation
Processing: Document Information Extraction
Processing: Document Classification
Processing: Business Entity Recognition
Processing: SAP Translation Hub
Processing: Service Ticket Intelligence
Processing: Personalized Recommendation

******** truncated generator output ********************