[SOLVED] Error: Cannot read property 'name' of undefined when build


#1

hello, i am getting then error
Error: Cannot read property ‘name’ of undefined
when using ionic cordrova build ios --…
but the weird thing is that i can serve normally and all the pages are OK

i even created a new fresh blank app, but i get the same error

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.19.0
ionic (Ionic CLI) : 3.19.0

global packages:

cordova (Cordova CLI) : 7.1.0 

local packages:

@ionic/app-scripts : 3.1.6
Cordova Platforms  : ios 4.5.4
Ionic Framework    : ionic-angular 3.9.2

System:

ios-deploy : 1.9.1 
Node       : v6.11.2
npm        : 3.10.10 
OS         : OS X Yosemite
Xcode      : Xcode 7.0.1 Build version 7A1001 

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : legacy

any Idea
thanks all


#2

Upgrade to the current Node LTS and see if the problem persists.


#3

thank you
i did it’ then i got the error
error: error code 65 for command: xcodebuild with args: -xcconfig

and in xcode it was
linker command failed with exit code 1 (use -v to see invocation)

after a search, it was the console plugin, i removed it and it build successfully

thank you very much