-
Notifications
You must be signed in to change notification settings - Fork 669
ionic upload fails with differing project structure #1332
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
Comments
I created a repo especially for this case that you can use to reproduce this issue. Setup
Then you should replace the
You then should get the same error as above. Uncomment these lines in your installation of Open Ionic View and tada! |
I have the exact same issue; but it does not seem critical because the file does upload. +1 |
@jaworskm, oh! It never occurred to me to check. Thanks! |
This looks similar to the issue found here: #984. I'm guessing commenting out line 150 in |
@sdemurjian it's not closed. |
@gruppjo Oops, sorry. I think I mixed up this issue with the other one -- Editing my comment to reflect this |
I find it confusing some times as well, when linked issues are closed ;) |
Still having this issue after upgrading to version 2.1.0 of the CLI. |
Upgrading the ionic-cli to version 2.1.6 fixed the issue for me. I believe the commit that fixed it was #1605 |
I've got this issue with the version 2.1.4 of the CLI |
@dwieeb, @jthoms1. I hope it's alright if I directly mention you in this issue.
I'm currently trying to make integration of
ionic-cloud
work with Generator-M-Ionic projects and update our ionic integration guide. Integration seemed fairly easy apartionic-cloud
not being available through bower. For which I created an issue: ionic-team/legacy-ionic-cloud#43. However I needionic upload
to work with our project structure. In recent versions of the Ionic CLIionic upload
was satisfied as long as the following criteria were met:www/
, mainly an existingindex.html
seemed importantionic.config.json
and.io-config.json
Unfortunately this no longer works with
v2.0.0
. I get the following error when runningionic upload
:One of our users had this issue before but I failed to track it down mway-io/generator-m-ionic#409.
With version
v2.0.0
I can reliably reproduce this issue now and was able to track down the error to the following two lines of code in the Ionic CLI: https://github.com/driftyco/ionic-app-lib/blob/master/lib/upload.js#L150-L151 Apparentlylog
is undefined at this point. Not sure why. By commenting those lines, I gotionic upload
to work.In my discussion with @tlancina in march (#845) I think he mentioned that other project structures should technically be supported. So my question is: am I doing something wrong? How can I get around this to allow our users to reliably upload to ionic?
The text was updated successfully, but these errors were encountered: