... a contemporary perspective on how to integrate B2C Commerce and the Salesforce Customer 360 Platform to power frictionless customer experiences in the B2C domain.
Describe the bug
When running npm run crm-sync:test:cli the script fails saying:
Error: Cannot find module './_createOCAPIAuthRequestDef'
This is due to the file in lib/_common/request being named _createOCAPIAUthRequestDef.js (notice the capital 'U')
To Reproduce
Steps to reproduce the behavior:
Go to project root
Run npm run crm-sync:test:cli
See error
Expected behavior
Expected to see test results
Screenshots
Your local environment details:
Node version 18.13.0
NPM version 8.19.3
SFDX version sfdx-cli/7.184.2 linux-x64 node-v18.13.0
Your remote environment details:
Salesforce B2C Commerce version: 23.2
Salesforce Core version: 56.0
Fix
Renaming lib/_common/request/_createOCAPIAUthRequestDef.js to lib/_common/request/_createOCAPIAuthRequestDef.js
Describe the bug When running
npm run crm-sync:test:cli
the script fails saying:Error: Cannot find module './_createOCAPIAuthRequestDef'
This is due to the file in lib/_common/request being named _createOCAPIAUthRequestDef.js (notice the capital 'U')To Reproduce Steps to reproduce the behavior:
npm run crm-sync:test:cli
Expected behavior Expected to see test results
Screenshots
Your local environment details:
Your remote environment details:
Fix Renaming lib/_common/request/_createOCAPIAUthRequestDef.js to lib/_common/request/_createOCAPIAuthRequestDef.js