cordova-cli icon indicating copy to clipboard operation
cordova-cli copied to clipboard

cordova config delete calling configstore incorrectly

Open Noglen opened this issue 6 years ago • 0 comments

Bug Report

Problem

What is expected to happen?

Running cordova config delete removes the key from the config file

What does actually happen?

[mypath]\npm\node_modules\cordova\src\cli.js:139 conf.del(inputArgs[4]); ^

TypeError: conf.del is not a function at module.exports ([mypath]\npm\node_modules\cordova\src\cli.js:139:18) at Object. ([mypath]\npm\node_modules\cordova\bin\cordova:27:1) at Module._compile (internal/modules/cjs/loader.js:701:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10) at Module.load (internal/modules/cjs/loader.js:600:32) at tryModuleLoad (internal/modules/cjs/loader.js:539:12) at Function.Module._load (internal/modules/cjs/loader.js:531:3) at Function.Module.runMain (internal/modules/cjs/loader.js:754:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)

Information

cli.js is trying to call conf.del, but the correct method is actually conf.delete

Command or Code

cordova config delete

Environment, Platform, Device

Version information

9.0.0 ([email protected])

Checklist

  • [x] I searched for existing GitHub issues
  • [x] I updated all Cordova tooling to most recent version
  • [x] I included all the necessary information above

Noglen avatar Jun 30 '19 23:06 Noglen