Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with 1.2.1 #84

Closed
danjohnso opened this issue Sep 6, 2014 · 7 comments
Closed

Issue with 1.2.1 #84

danjohnso opened this issue Sep 6, 2014 · 7 comments

Comments

@danjohnso
Copy link

I'm getting an issue trying to build/run with 1.2.1, throws and error looking for the config.xml that is not in the root (in www). I moved the file to the root but then it threw an error about not being able to read property "0" of undefined. Downgraded to 1.2.0 and its working fine again

@matheusrocha89
Copy link

Could you paste the error here @danda1man?

@danjohnso
Copy link
Author

Looks like 1.2.2 has the issue still (had to reupgrade to get the error).

Error if config is in the www folder instead of the root directory:

D:\approot>ionic run android
Error updating config.xml file: Error: ENOENT, no such file or directory 'D:\approot\config.xml' (CLI v1.2.2)

C:\Users***\AppData\Roaming\npm\node_modules\ionic\lib\ionic\cordova.js:33
q.then(function(){
^
TypeError: Cannot call method 'then' of undefined
at Object.IonicTask.run (C:\Users**_\AppData\Roaming\npm\node_modules\ionic
\lib\ionic\cordova.js:33:5)
at Object.Ionic.run (C:\Users_\AppData\Roaming\npm\node_modules\ionic\lib
\ionic.js:443:18)
at Object. (C:\Users*
\AppData\Roaming\npm\node_modules\ionic\b
in\ionic:10:7)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3

Error if I move config out to the root:
D:\approot>ionic run android
Error updating config.xml file: TypeError: Cannot read property '0' of undefined
(CLI v1.2.2)

C:\Users***\AppData\Roaming\npm\node_modules\ionic\lib\ionic\cordova.js:33
q.then(function(){
^
TypeError: Cannot call method 'then' of undefined
at Object.IonicTask.run (C:\Users**_\AppData\Roaming\npm\node_modules\ionic
\lib\ionic\cordova.js:33:5)
at Object.Ionic.run (C:\Users_\AppData\Roaming\npm\node_modules\ionic\lib
\ionic.js:443:18)
at Object. (C:\Users*
\AppData\Roaming\npm\node_modules\ionic\b
in\ionic:10:7)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3

@adamdbradley
Copy link

I've made some error handling updates, would you be able to test out npm install -g ionic@1.2.3-beta1 and let me know if you are still having issues? Thanks

@danjohnso
Copy link
Author

Works! Compile successful

@adamdbradley
Copy link

Great, thanks for testing!

@rvanbaalen
Copy link

It appears that this issue is resurfacing in v1.2.13:

Error parsing /Users/Robin/Apps/project-name/config.xml: TypeError: Cannot read property '0' of undefined (CLI v1.2.13)


path.js:360
        throw new TypeError('Arguments to path.join must be strings');
              ^
TypeError: Arguments to path.join must be strings
    at path.js:360:15
    at Array.filter (native)
    at Object.exports.join (path.js:358:36)
    at Object.IonicTask.loadSettings (/usr/local/lib/node_modules/ionic/lib/ionic/serve.js:69:26)
    at Object.IonicTask.run (/usr/local/lib/node_modules/ionic/lib/ionic/serve.js:33:8)
    at Object.Ionic.run (/usr/local/lib/node_modules/ionic/lib/ionic.js:495:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/ionic/bin/ionic:10:7)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)

Edit:

This worked for me:
http://forum.ionicframework.com/t/ionic-serve-error-updating-config-xml/10490

@henriquebelfort
Copy link

@rvanbaalen tks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants