Samsung / grunt-cordova-sectv

Grunt task for build and package the cordova project with `sectv-OOO` platforms.
Apache License 2.0
18 stars 22 forks source link

Warning: Cannot read property '0' of undefined Used --force, continuing. #9

Open jfrux opened 7 years ago

jfrux commented 7 years ago

Warning: Cannot read property '0' of undefined Used --force, continuing. Running on MacOS

grunt sectv-prepare --verbose --force
Initializing
Command-line options: --verbose, --force

Reading "Gruntfile.js" Gruntfile...OK

Registering Gruntfile tasks.
Initializing config...OK

Registering "grunt-contrib-clean" local Npm module tasks.
Reading /Users/joshua/Projects/my-app/node_modules/grunt-contrib-clean/package.json...OK
Parsing /Users/joshua/Projects/my-app/node_modules/grunt-contrib-clean/package.json...OK
Loading "clean.js" tasks...OK
+ clean

Registering "grunt-cordova-sectv" local Npm module tasks.
Reading /Users/joshua/Projects/my-app/node_modules/grunt-cordova-sectv/package.json...OK
Parsing /Users/joshua/Projects/my-app/node_modules/grunt-cordova-sectv/package.json...OK
Loading "sectv-build.js" tasks...OK
+ sectv-build
Loading "sectv-prepare.js" tasks...OK
+ sectv-prepare
Loading "Gruntfile.js" tasks...OK
+ default

Running tasks: sectv-prepare

Running "sectv-prepare" task

Running "sectv-prepare:sectv-orsay" (sectv-prepare) task
Verifying property sectv-prepare.sectv-orsay exists in config...OK
Files: -> platforms/sectv-orsay/www

Start preparing codes for Legacy Samsung Smart TV Platform......
Warning: Cannot read property '0' of undefined Used --force, continuing.

Running "sectv-prepare:sectv-tizen" (sectv-prepare) task
Verifying property sectv-prepare.sectv-tizen exists in config...OK
Files: -> platforms/sectv-tizen/www

Start preparing codes for Samsung Tizen Platform......
Warning: Cannot read property '0' of undefined Used --force, continuing.

Running "sectv-prepare:tv-webos" (sectv-prepare) task
Verifying property sectv-prepare.tv-webos exists in config...OK
Files: -> platforms/tv-webos/www

Start preparing codes for Webos TV Platform......
Warning: Cannot read property '0' of undefined Used --force, continuing.

Done, but with warnings.
prozanne commented 7 years ago

Hi Although I tested as you said above, It was not reproduced. (running MacOS also) In order to resolve this issue quickly, please check below.

  1. Did you updated recently grunt-cordova-sectv?
  2. If so, can you share me your whole toast project with archive file. (such as zip)

Thanks.

jfrux commented 7 years ago

So you're thinking it's related to the Toast module?

jfrux commented 7 years ago

Zipped version of my cordova-plugin-toast https://www.odrive.com/s/3e5ee8b0-4e82-4c4c-b4d8-1875752092e6-59159bf5

Couldn't we like... make a single repo that pulls down the right versions of all the modules into a directory with say... bower or something, and does all of this in a testable way?

jfrux commented 7 years ago

Could it be the node version, I'm using like 7.7.2?

jfrux commented 7 years ago

Sorry! Just found the shell script that sets it all up for me. It's working good when I use the shell script.

jfrux commented 7 years ago

FYI, the issue was with my cordova-app/config.xml not having an Once I added it, it fixed it.

It has to do with line 47 of tasks/lib/utils.js. Probably should be more robust in it's checking for if conf.widget.author exists first.