How to upgrade the angular version from 7 to 11 and is it recommend to upgrade? - angular7

Im trying to upgrade the angular version from 7 to 11 and getting the unhandled exception occured error.enter image description here

If you already have done an upgrade of the Angular version from 7 to 11 and if everything works fine except the error as shown while running the following command
npm start
then you can modify your package.json file and add the following to the scripts section:
"postinstall": "ngcc"
Hope that it could be a workaround!

Related

Meteor cordova plugin webapp fails to build on Xcode 8

I got the same issue as this guy
And this thread
When running my app as meteor run ios-device and then trying to run it form Xcode8, it throws a lot of issues.
Tried setting the swift version to legacy support in the build settings for the project without luck, also bumped the version from 1.2.8 to 1.3.0, didn't work.
It seems it could be fixed by changing to swift3 branch but I don't know how to do this since this package is being pulled by Atmosphere, so it's probably selecting master branch from npm and overriding the files each time I try to run it with meteor run ios-device
This is the Broken Package Github Repo
Doing meteor add will override the default plugin version that comes with Meteor, you just need to point to the specific commit. Taken from https://forums.meteor.com/t/ios-10-compatibility/26065/17
meteor add cordova:cordova-plugin-meteor-webapp#https://github.com/meteor/cordova-plugin-meteor-webapp.git#8bf95eed3f313299fc2de33658866278eea2cdc5
As suggestet by erikwall, but instead of
meteor add cordova:cordova-plugin-meteor-webapp#https://github.com/meteor/cordova-plugin-meteor-webapp.git#8bf95eed3f313299fc2de33658866278eea2cdc5
just do:
meteor add cordova:cordova-plugin-meteor-webapp#latest
For me did work just with latest

starter application react native error

I just started with react-native development on IOS and want to get my feet wet.
I did the following:
react-native init trail
and I opened the trail starter project in xcode and hit run. There were several small issues I fixed already including upgrading watchman, upgrading OSX. Currently the logs do not show any errors.
While the logs show that the packager runs, the build failed on XCode. A lot of errors showed up with the files in the Library folder. Many of them show up as Parse Issues, Semantic Issues.
I'm currently using Mac OSX Yosemite 10.10.5. Why did the started app fail to build?
Here are some code snippets of the errors:
code snippet 1
code snippet 2
Update your versions of node, npm and xCode.
Run 'react-native init yourAppName';
Run in yourAppNameFolder 'npm i' - to install all needed dependencies, which may be missing;
Run 'open yourAppNameFolder/ios/yourAppName.xcodeproj' where appFolder - folder which one have been initialized by command 'react-native init'.
This should help, and one more suggestion - don't touch this bloody xcode, better to run the app from the shell.

Nothing at all happens when running cordova prepare ios

I am in a ionic app at its root folder. I have a config.xml file and am having trouble getting it to build. I had no issues a few weeks ago, but I've screwed something up on my system I think. I have reinstalled both cordova and ionic and re-pulled the repo.
However, when I run ionic prepare ios --verbose literally nothing happens.
This is the only output:
ConfigXml.setConfigXml /Users/ben/code/project/app resetContent=true, errorWhenNotFound=false
ANY guidance as to what I should try next is very much appreciated.
cordova version is 5.2.0
npm version is 3.3.12
node version is v5.4.1
ionic version is 1.7.14
cordova platform ls outputs:
Installed platforms: ios 3.9.1
Available platforms: amazon-fireos, android, blackberry10, browser, firefoxos, webos
As mentioned in this thread on Github, there is an issue in Node v5 that makes ionic prepare fail.
In order to solve it you can try a couple of things.
One would be to update your cordova installation to version 5.4 or later, since it includes a fix for the Node v5 problem. You can do that using following code:
npm install -g cordova
The other suggested solution in the link is to reset the state of your ionic installation. Be aware that issuing this command will do following (as specified in Ionic-cli github page):
The ionic state reset method will first remove your platforms and
plugins folders. Then it will look at your package.json file to
re-install the platforms and plugins as specified there.
This command can be helpful for you to reinstall your plugins and
platforms to get a fresh start.
If you are willing to try, you can do it with following command:
ionic state reset
Personally I would try first to upgrade Cordova.
Try:
sudo ionic prepare ios --verbose
Whenever you install new plugins or platforms you must also change the read/write permissions on root folder for your project.

build failed when push notification plug in added to project on mac

I am using PhoneGap to build applications.
Application runs properly on emulator but when push notification plug in is added to project it gives build errors.
I searched this issue...initially it was found to be a common issue to many people...tried all solutions...but still the same build errors.
here is the plug in
sudo cordova plugin add phonegap-plugin-push
one of the solution said try out with 1.2.3 version of push notification i.e
sudo cordova plugin add phonegap-plugin-push#1.2.3
There were no errors using this version but then it is older version want a solution with the latest version.
The latest is working on windows machine but not on MAC.
Here is the detailed error when used latest version
ANDROID_HOME=/Users/bunty/Library/android-sdk-macosx
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
> Could not find any version that matches com.android.support:support-v13:23+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v13/maven-metadata.xml
https://repo1.maven.org/maven2/com/android/support/support-v13/
Required by:
:android:unspecified
> Could not find any version that matches com.google.android.gms:play-services-gcm:+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/maven-metadata.xml
https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/
Required by:
:android:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 37.885 secs
Error: Error code 1 for command: /Users/bunty/Documents/ParsianaApp/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/bunty/Documents/ParsianaApp/platforms/android/build.gradle,-PcdvBuildArch=arm,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
Can anyone help on this ?
If you read the install guide
You will need to ensure that you have installed the following items
through the Android SDK Manager:
Android Support Library version 23 or greater
Android Support Repository version 20 or greater
Google Play Services version 27 or greater
Google Repository version 22 or greater
You can do it manually or using this command:
android update sdk --no-ui --filter "extra"
Dont use sudo for installing. It causes permissions issues.

iOS: Facing issue while upgrading from cordova 2.2.0 to 2.3.0

I have been developing a phonegap iOS application with cordova 2.2.0 version. Now I want to upgrade to cordova 2.3.0 due to some reason. For doing so, I have taken phonegap documentation as a reference where they have mentioned step-by-step approach.
I was able to do everything except the following step
Convert your Cordova.plist file to config.xml, by running the script bin/cordova_plist_to_config_xml on your project file.
How to run that script and where should I run that. I have run that in terminal but got the following error
bash: No such file or directory found
Please help me in this.
This script is for converting your cordova 2.2 Plist to cordova 2.3 XMLConfig...
In 2.3 version it requires xmlconfig for the corresponding normal plist..so we have to convert our plist to xmlconfig..The following script will do it.
The syntax of this script is
./cordova_plist_to_config_xml /Path to your Xcode project/
example:
./cordova_plist_to_config_xml /Users/shabab/Desktop/Plancentral/Plancentral.xcodeproj

Resources