grunt-cordova-sectv
grunt-cordova-sectv copied to clipboard
Prepare doesn't generate a userconf.js
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?
i can confirm. it does not look like they update this frequently. we have to use older npm and old package versions
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
@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',