AresProject from source Error "TypeError: Cannot read property 'length' of undefined"

ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): HTTP Error: Error: Fail: '"/Users/jameserbes/.nvm/v0.8.25/bin/node" "/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/minify.js" "-enyo" "/Users/jameserbes/Play/enyojs/ares-project/enyo" "-output" "/private/var/folders/n_/y33px4fx27vch1ndjbxklzr00000gn/T/com.palm.ares.hermes.bdPhoneGap.11376-96856-1xdxk39.d/build/app" "-less" "package.js"'
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): { enyo: '/Users/jameserbes/Play/enyojs/ares-project/enyo',
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): output: '/private/var/folders/n_/y33px4fx27vch1ndjbxklzr00000gn/T/com.palm.ares.hermes.bdPhoneGap.11376-96856-1xdxk39.d/build/app',
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): less: true,
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): argv:
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): { remain: [ 'package.js' ],
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): cooked:
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): [ '--enyo',
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): '/Users/jameserbes/Play/enyojs/ares-project/enyo',
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): '--output',
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): '/private/var/folders/n_/y33px4fx27vch1ndjbxklzr00000gn/T/com.palm.ares.hermes.bdPhoneGap.11376-96856-1xdxk39.d/build/app',
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): '-less',
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): 'package.js' ],
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): original:
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): [ '-enyo',
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): '/Users/jameserbes/Play/enyojs/ares-project/enyo',
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): '-output',
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): '/private/var/folders/n_/y33px4fx27vch1ndjbxklzr00000gn/T/com.palm.ares.hermes.bdPhoneGap.11376-96856-1xdxk39.d/build/app',
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): '-less',
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): 'package.js' ] },
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): source: 'package.js' }
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond():
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond():
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): TypeError: Cannot read property 'length' of undefined
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): at walkerFinished (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/minify.js:180:32)
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): at processNextChunk (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/minify.js:173:5)
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): at walkerFinished (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/minify.js:176:3)
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): at Object.module.exports.walk.loader.finish (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:61:4)
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): at Object.enyo.loaderFactory.more (eval at (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:12:10))
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): at Object.enyo.loaderFactory.load (eval at (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:12:10))
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): at Object.module.exports.init.enyo.depends (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:55:16)
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): at eval (eval at (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:12:10))
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): at script (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:12:2)
ares WARN phonegap bdPhoneGap WARN errorHandler#_respond(): at Object.module.exports.walk (/Users/jameserbes/Play/enyojs/ares-project/enyo/tools/minifier/node_modules/walker.js:63:3)

Comments

  • the error is at around line 180 in minify.js:
    for (var i=0; i<opt.mapfrom.length; i++) {
    js = js + "enyo.path.addPath(\"" + opt.mapfrom[i] + "\", \"" + opt.mapto[i] + "\");\n";
    }

    opt.mapfrom is undefined

    what should opt.mapfrom be?
  • opt.mapto is also undefined
Sign In or Register to comment.