-
Notifications
You must be signed in to change notification settings - Fork 669
"project.app" key hard-coded during Cordova engine addition/removal #3106
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
@cwoolum Agreed. You've encountered an issue with the gross hack that's in place between v4 and Cordova. There are a few other known issues. As a reminder, the v4 stuff is all opt-in and experimental, even though the CLI itself is in RC. Thanks for the issue! I'll update this when it's improved. As an aside, support for the Cordova browser platform in general isn't the best right now. Please see #2312 (comment) and #3043 |
This isn't actually a browser platform specific. This also occurs during Android. The main issue is that the CLI is looking for a project named "app" in the angular CLI config. |
yep, it's the same behavior with any cordova run/emulate |
It's possible to pass options to
This doesn't work for builds unfortunately. I'm currently setting up multiple ionic apps with a shared code base so I'm looking forward to see where this goes. |
@stupidawesome This is an issue with Cordova commands, not |
Tracked by #3103 Already fixed in master 😄 |
Ionic version: (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[ ] 3.x
[x] 4.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
Current behavior:
When running
ionic cordova run browser
the errorprojects.app key in angular.json is undefined--cannot add assets.
is thrown.Expected behavior:
Ionic CLI should be able to run
ionic cordova run browser
if there is only one project in theangular.json
projects list without it being named 'app'. If the Ionic CLI cannot support a multiple app configuration, allow a default app to be specified in the Ionic config or take the first available project if only one is specified. If more than one is available, i would expect an error to be thrown and a message given saying that a entry app needs to be specified in the Ionic config.I should not have to rename my app to 'app' in order to run the ionic CLI serve command.
Steps to reproduce:
Take an ionic 3 project and add a .angular-cli.json file to it. Use
ng upgrade
to upgrade the schema so that it now is compliant withangular.json
schema. Use the Ionic v4 CLI to try and run the app.Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):The text was updated successfully, but these errors were encountered: