-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
New Ionic + new Cordova no longer work for debugging (with livereload) #13737
Comments
Same here :( |
I'm pretty sure this is related to ionic-team/ionic-app-scripts#1354 |
Still a thing 👎 |
As a workaround you can edit
replace
with
|
I had the same problem and ended up downgrading from |
Any update on this? This is very annoying. |
Same here
|
I made a Cordova hook that you can add to your config.xml. It will edit the file that @itslenny mentions above. If you don't know what Cordova Hooks are, you can find more information at https://cordova.apache.org/docs/en/latest/guide/appdev/hooks/. I recommend adding it like this
The code for the webhook is in this gist: https://gist.github.com/SteveKennedy/a9964b291afa51f820b5d73b687eeb34 |
Still an issue with Ionic 3.20.0. The fix described here on stackoverflow worked for me.
|
@SteveKennedy This is probably the best solution, since its not always a good idea to edit anything in the node_modules folder. But I have a change to your gist. Line 37 should be
While your current code makes sense, the hook did nothing unless I changed it to above. But once changed, everything is working well in Corvoda 7.1.0. Thanks for your contribution! |
While the gist and/or the suggested edit works it makes the normal |
Interesting! Ultimately its a bug that will be addressed in the future by Ionic or Cordova teams, but this fix at least let me continue working on the emulator. |
You would think that this bug would be at the top of their queue. Strange. |
This is a problem that should be treated as a priority because it is a BUG. Today I lost 3~4 hours until I get here, not to mention that when leaving the project of the repositiorio we will have to remember to edit the file. |
Here says that the latest release fix this problem. |
Yes, I believe this merged PR should solve this issue: ionic-team/ionic-app-scripts#1407 |
I imagine the team is pretty busy with the v4. I can confirm that with ionic v3.2 this is still an issue - @msholly 's instructions fix the problem. gang gang. |
I'm testing ionic 4 and I have the same problem =( when using the http-native. |
I'm testing ionic 4 and I have the same problem. Now in the file "server-config.js" it looks like this:
The warn persists. |
I have a same problem My info Ionic: ionic (Ionic CLI) : 4.1.1 System: NodeJS : v8.11.1 |
same here |
Is there a workaround for debugging or testing faster? |
Same here, this is driving me nuts |
I am not able to find this file what should i doFIX: You need go to node_modules/@ionic/app-scripts/dist/dev-server/serve-config.js |
node_modules/@Ionic does only contains 3 folders, angular, angular-toolkit and core . There is no trace of app-scripts |
I started having the same issue when upgrading from ionic 4.0.0-beta.11 to 4.0.0-beta.12. Decided to downgrade for the time being until the next beta version. Just had some time to upgrade to 4.0.0-beta.13, and this is still an issue. |
try ./node_modules/.bin/ionic-app-scripts serve --sourceMap source-map --iscordovaserve --wwwDir platforms/browser/www/ --buildDir platforms/browser/www/build This is for v3 |
@tgirgin23 I also tried to downgrade to @ionic/4.0.0-beta.11 but for me it's not working. |
@RafaelKr Here is my ionic info (nodejs version is actually 10+, just had to switch for another project in the meantime). Hopefully this can help you.
|
@tgirgin23 thanks for sharing! I tried to mirror your environment as close as possible, but after uninstalling
|
@RafaelKr Yes, I got the same error. Everything is still working fine though... weird. |
I am using Ionic 4.3.0, and still got this issue. Ionic: ionic (Ionic CLI) : 4.3.0 (/Users/user/.config/yarn/global/node_modules/ionic) Cordova: cordova (Cordova CLI) : 8.1.2 ([email protected]) System: ios-deploy : 1.9.4 |
It works again!They just fixed it with an angular-toolkit update. Install it with
Source: https://github.com/ionic-team/angular-toolkit/blob/master/CHANGELOG.md Edit:
|
This seems to be working using the new ionic angular toolkit, however i had to start a new ionic project and copy all my code in there. |
@tgirgin23 nice to hear it's working! I have added my |
Not sure why but transferring all my files to a fresh project worked for me too! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Ionic version: (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x
[ ] 4.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
Current behavior:
New Ionic + new Cordova no longer work for debugging (with livereload)
Expected behavior:
run normally with cordova in livereload mode
Steps to reproduce:
On a new computer, I installed:
And after everything configured just like the Ionic documents, I created a new basic app:
ionic start myApp tabs
The application even runs normally, but when I go to debug:
ionic cordova run android -lc
I get the following message:
Related code:
Normal code, generated by Ionic's own standard template tabs
Other information:
Cordova requirements:
The text was updated successfully, but these errors were encountered: