grunt-cordova-sectv icon indicating copy to clipboard operation
grunt-cordova-sectv copied to clipboard

Prepare doesn't generate a userconf.js

Open cnavarroestrella opened this issue 7 years ago • 3 comments

The command grunt sectv-prepare:sectv-tizen stops abruptly after prompting for package data. This seems to come from a change in inquirer that changes usage of inquirer.prompt from a callback passed as a parameter to a returned promise.

Please see this issue in cordova-plugin-toast. This other issue might be related, maybe inquirer isn't properly set up in the project's package.json, therefore not being installed automatically, and the user is manually installing the latest version which doesn't work?

cnavarroestrella avatar Jan 11 '18 07:01 cnavarroestrella

i can confirm. it does not look like they update this frequently. we have to use older npm and old package versions

rikoopa avatar Jan 20 '18 13:01 rikoopa

Sorry for late answer. We was put into other projects, for this reason, we couldn't manage promptly.

https://github.com/Samsung/cordova-plugin-toast/wiki/Prepare-to-start Unfortunately, As the result for testing on window os and mac os recently, this grunt project is optimized in node v7.10.1 / npm v 4.2.0. Please note that you can use grunt tasks normally on node v7.10.1

prozanne avatar Jan 26 '18 10:01 prozanne

@cnavarroestrella I was thinking of the inquirer problem as well. But that seems to work, at least if you pin inquirer version to 0.12.0.

I found another error that caused no package data has been generated.

Fatal error: js2xmlparser is not a function

In https://github.com/Samsung/grunt-cordova-sectv/blob/master/tasks/packager/sectv-tizen.js

js2xmlparser is called like manualTizenConfData = utils.trim(js2xmlparser('platform',...

but should be called like manualTizenConfData = utils.trim(js2xmlparser.parse('platform',

mko-x avatar Feb 28 '18 14:02 mko-x