SAP Knowledge Base Article - Preview

3492468 -  "ERR_PNPM_PEER_DEP_ISSUES  Unmet peer dependencies" when upgrading to Angualr 17 for customized smartedit extension

Symptom

When following Upgrading to Angular 17 to upgrade to SAP Commerce Cloud 2211.24 for customized smartedit extension

  • After resolving inconsistencies in customized smartedit extension, in Step 2, the command "ant rushcheck -Dpath=/absolute/path/smartedittools" generates inconsistencies but within the platform extensions.

    Starting "rush check"

    karma
      6.4.3
        - @smart/utils
        - cmscommons
        - cmssmartedit
        - cmssmarteditcontainer
        - mycustomizedsmartedit
        (and 9 others)
      6.4.2
        - personalizationsearchsmartedit
        - personalizationsearchsmarteditcontainer

    Found 1 mis-matching dependency

  • In Step 4, the "ant clean build" command generates the following error.

    Scope: all 20 workspace projects
    ERR_PNPM_PEER_DEP_ISSUES Unmet peer dependencies

    ../../../../../custom/myproject/mycustomizedsmartedit/apps/mycustomizedsmartedit
    └─┬ @angular/upgrade 15.2.10
      ├── ✕ unmet peer @angular/core@15.2.10: found 17.1.2
      ├── ✕ unmet peer @angular/compiler@15.2.10: found 17.1.2
      ├── ✕ unmet peer @angular/platform-browser@15.2.10: found 17.1.2
      └── ✕ unmet peer @angular/platform-browser-dynamic@15.2.10: found 17.1.2

    hint: If you don't want pnpm to fail on peer dependency issues, add "strict-peer-dependencies=false" to an .npmrc file at the root of your project.

    Giving up after 1 attempt

    ERROR: The command failed with exit code 1


Read more...

Environment

SAP Commerce Cloud 2211.24

Product

SAP Commerce Cloud 2211

Keywords

KBA , CEC-SCC-COM-SEDIT , SmartEdit , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.