-
Notifications
You must be signed in to change notification settings - Fork 669
exception ionic cordova run browser after upgrade to 3.15.0 #2826
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 found a temporary solution, remove the browser platform:
|
thanks for temp solution |
We have the same bug. Every time you run: Then the next time you run: Then it builds correctly. The 2nd time you run: it fails every time. |
I have the same problem. I just reverted to 3.14.0 with the command
I think it might be ionic/[email protected] that is causing problems, as there is a fix that it should only return valid platforms. That might have introduced the error |
thanks @ThorvaldAagaard Are there any downsides to permanently targeting a specific version like this? And then only upgrading that version when we need new features from the latest release? |
Version 3.14.0 was only 2 days old before 3.15.0 arrived, so I guess it will be easy to fix. But generally it should be ok to stick with a specific version like all other npm-packages, and then plan the upgrade. Only issue is that when you update all at the same time it might be difficult to see what introduces the error |
ok, thank you! |
Sorry about that. Please keep in mind we don't "officially" support the browser platform yet--see #2312. This issue should be fixed in 3.15.1. |
@dwieeb I was under the impression that Ionic fully supported the browser. Am I wrong? "Ionic is the perfect platform for building progressive web apps" @mhartington perhaps you can clarify also? "We support Safari, Chrome, firefox, and Edge." Also: We are investing considerable time into an iOS, Android and Web Browser based app. If Ionic are not planning to support the browser we would have to reevaluate our approach. Many thanks. |
@dev-manager-uk - I believe they are just talking about the cordova browser platform, which is more of plugin testing platform, at least currently. Many plugins don't work with it and some that do work with it do so by providing mock data and not real data. Others work great! Running the browser, though, is perfectly fine. See the advice given here: https://blog.ionic.io/how-to-make-pwas-with-ionic/ pertaining to commenting out If running on both a native and a web environment, this article shows how to deal with the lack of plugins by either using Ionic Native and getting a warning but continuing on but without the support of the plugin functionality or by having separate code run depending environment: https://ionicframework.com/docs/developer-resources/desktop-support/ Finally, I find this page very helpful when running from the browser: https://whatwebcando.today |
Thank you @kensodemann I understand that lots of plugins might not work as well on web compared to mobile. Fair enough. However I don't understand why that is being used as an excuse for releasing a version of ionic-cli that breaks "ionic cordova run browser" because you don't "officially" support it. Or is there a different command that you do "officially" support? |
I am using the browser platform and deploying it to firebase. That is working fine, but it would be nice if it was a supported platform at the same level as the others. After the latest update of ionic that fixed the problem with the platform getting added, there is still an issue as the command
now fails with this error Error: ./node_modules/rxjs/observable/BoundCallbackObservable.js |
Just seen #13248 So are you saying that instead of: We should be using: |
Yes. Per the "Deploying" section of this article: https://blog.ionic.io/how-to-make-pwas-with-ionic/ But you will have to make sure you use web API calls to replace the functionality of the Cordova plugins that won't be there per the "plugins" section of this article: https://ionicframework.com/docs/developer-resources/desktop-support/ That is my suggestion, anyhow. |
Thanks Ken, we'll give that a go. |
We have updated our build from: to use instead: And it's now working. Thank you for your help @kensodemann @dwieeb |
Description:
after upgrade to ionic cli 3.15.0 fired an exception
only downgrade to 3.14.0 ionic cordova run browser works fine
$ ionic cordova run browser
Error: Platform browser already added.
[ERROR] Exception:
My
ionic info
:$ ionic info
? The Ionic CLI has an update available (3.14.0 => 3.15.0)! Would you like to install it? No
Not automatically updating your CLI.
cli packages: (C:\Users\kukoba.av\AppData\Roaming\npm\node_modules)
global packages:
local packages:
System:
Misc:
The text was updated successfully, but these errors were encountered: