b2c-crm-sync icon indicating copy to clipboard operation
b2c-crm-sync copied to clipboard

Getting Error in deploying this package into SFDC

Open Sourabh-Bhandari opened this issue 3 years ago • 3 comments

Describe the bug While using the command: " npm run crm-sync:sf:org:deploy " I am getting this error With Error Status.

[ { "stack": "TypeError: Cannot read property 'string' of undefined\n at /home/ranosys/Downloads/b2c-crm-sync/b2c-crm-sync/node_modules/@oclif/core/node_modules/cli-ux/lib/styled/table.js:285:34\n at Object. (/home/ranosys/Downloads/b2c-crm-sync/b2c-crm-sync/node_modules/@oclif/core/node_modules/cli-ux/lib/styled/table.js:314:3)\n at Module._compile (node:internal/modules/cjs/loader:1102:14)\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1131:10)\n at Module.load (node:internal/modules/cjs/loader:967:32)\n at Function.Module._load (node:internal/modules/cjs/loader:807:14)\n at Module.require (node:internal/modules/cjs/loader:991:19)\n at require (node:internal/modules/cjs/helpers:92:18)\n at Object. (/home/ranosys/Downloads/b2c-crm-sync/b2c-crm-sync/node_modules/@oclif/core/node_modules/cli-ux/lib/index.js:14:36)\n at Module._compile (node:internal/modules/cjs/loader:1102:14)\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1131:10)\n at Module.load (node:internal/modules/cjs/loader:967:32)\n at Function.Module._load (node:internal/modules/cjs/loader:807:14)\n at Module.require (node:internal/modules/cjs/loader:991:19)\n at require (node:internal/modules/cjs/helpers:92:18)\n at Object. (/home/ranosys/Downloads/b2c-crm-sync/b2c-crm-sync/node_modules/@oclif/core/lib/command.js:6:18)", "message": "Cannot read property 'string' of undefined", "name": "TypeError" } ]

Your local environment details:

  • Node version (node -v): v15.2.1
  • NPM version (npm -v): 7.0.8
  • SFDX version (sfdx -v) sfdx-cli/7.120.0 linux-x64 node-v15.2.1

Additional context

I am trying to install this connector in an SFDC sandbox. I have updated the env file with B2C Commerce Configuration Properties and Salesforce Platform Configuration Properties.

Do I need any scratch org configuration as well in this case(Sandbox). And if yes then how I will do that?

Sourabh-Bhandari avatar Oct 25 '21 06:10 Sourabh-Bhandari

I @Sourabh-Bhandari, Do you have resolved this problem ?

I have the same error when try to deploy on a Sandbox.

My env details:

  • Node version : v15.2.1
  • NPM version : 7.0.8
  • SFDX version : sfdx-cli/7.114.0 win32-x64 node-v14.17.5

regist84 avatar Nov 03 '21 17:11 regist84

I @Sourabh-Bhandari, i bypass this error modifing the file "/home/ranosys/Downloads/b2c-crm-sync/b2c-crm-sync/node_modules/@oclif/core/lib/command.js". I changed the row 6 from "const cli_ux_1 = require("cli-ux");" to "const cli_ux_1 = require("../../../cli-ux");"

regist84 avatar Nov 04 '21 11:11 regist84

I had the same issue, the fix by @regist84 also resolved for me

ast-ccorciega avatar Nov 17 '21 21:11 ast-ccorciega