TabView on Nativescript-Angular crashing iOs app - ios

I'm building an app using nativescript-angular. When running on Android, everything works great. When running on iOs, the app crashes when trying to render a TabView. I can't find anything about this error. Does any body have any ideas?
Here is the error:
***** Fatal JavaScript exception - application has been terminated. *****
NativeScript encountered a fatal error: Uncaught TypeError: Cannot read property 'count' of null
at
_updateIOSTabBarColorsAndFonts(file: node_modules/#nativescript/core/ui/tab-view/index.ios.js:444:23)
at [fontInternal:setNative](file: node_modules/#nativescript/core/ui/tab-view/index.ios.js:494:0)
at applyPendingNativeSetters(file: node_modules/#nativescript/core/ui/core/properties/index.js:1059:0)
at initNativeView(file: node_modules/#nativescript/core/ui/core/properties/index.js:1018:0).
at onResumeNativeUpdates(file: node_modules/#nativescript/core/ui/core/view-base/index.js:695:22)
at _resumeNativeUpdates(file: node_modules/#nativescript/core/ui/core/view-base/index.js:259:0)
at onLoaded(file: node_modules/#nativescript/core/ui/core/view-base/index.js:214:0)
at onLoaded(file: node_modules/#nativescript/core/ui/tab-view/index.ios.js:268:0)
at (file: node_modules/#nativescript/core/ui/core/view-base/index.js:297:0)
at callFunctionWithSuper(file: node_modules/#nativescript/core/ui/core/view-base/index.js:291:0)
at callLoaded(file: node_modules/#nativescript/core/ui/core/view-base/index.js:297:0)
at loadView(file: node_modules/#nativescript/core/ui/core/view-base/index.js:437:0)
at (file: node_modules/#nativescript/core/ui/core/view-base/index.js:216:0)
at eachChildView(file: node_modules/#nativescript/core/ui/layouts/layout-base-common.js:101:0)
at eachChild(file: node_modules/#nativescript/core/ui/core/view/view-common.js:700:0)
at onLoaded(file: node_modules/#nativescript/core/ui/core/view-base/index.js:215:0)
at (file: node_modules/#nativescript/core/ui/core/view-base/index.js:297:0)
at callFunctionWithSuper(file:///app/vendor.js:11791
I'm using tns version 7.2.0
tns --version
7.2.0
Here's my package.json
{
"name": "#nativescript/template-hello-world-ng",
"main": "main.js",
"version": "7.0.8",
"author": "NativeScript Team <oss#nativescript.org>",
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"publishConfig": {
"access": "public"
},
"keywords": [
"nativescript",
"mobile",
"angular",
"{N}",
"template"
],
"repository": "<fill-your-repository-here>",
"bugs": {
"url": "https://github.com/NativeScript/NativeScript/issues"
},
"dependencies": {
"#angular/animations": "~11.0.0",
"#angular/common": "~11.0.0",
"#angular/compiler": "~11.0.0",
"#angular/core": "~11.0.0",
"#angular/forms": "~11.0.0",
"#angular/platform-browser": "~11.0.0",
"#angular/platform-browser-dynamic": "~11.0.0",
"#angular/router": "~11.0.0",
"#nativescript/angular": "10.0.0",
"#nativescript/core": "^7.2.1",
"#nativescript/firebase": "^11.1.3",
"#nativescript/theme": "~3.0.0",
"nativescript-carousel": "^7.0.1",
"nativescript-fontawesome": "^1.0.0",
"nativescript-ngx-fonticon": "^7.0.0",
"nativescript-ui-dataform": "^7.0.4",
"reflect-metadata": "~0.1.12",
"rxjs": "^6.6.0",
"sass": "^1.32.6",
"zone.js": "~0.11.1"
},
"devDependencies": {
"#angular/compiler-cli": "~11.0.0",
"#nativescript/android": "7.0.1",
"#nativescript/ios": "7.2.0",
"#nativescript/types": "~7.0.0",
"#nativescript/webpack": "~3.0.0",
"#ngtools/webpack": "~11.0.0",
"typescript": "~4.0.0"
},
"gitHead": "41a7254d3bc134fd3c258761f3c6e1c3d54e6d41",
"private": "true",
"readme": "NativeScript Application"
}

I figured it out. Apprently TabView is depreciated as of Nativescript 6. I used BottomNavigation instead.

Related

IOS App Crashes in simulator after updating Nativescript from 6.5.1 to 8.2

I migrated my nativescript application from 6.5.1 to 8.2 locally, my project is building fine when I do "tns run ios" ,it installs the app on the simulator but it crashes and shuts down when its opened . I am unable to figure out where the issue is and am stuck here and unable to move forward, please let me know how to fix this or what i am missing?
package.json
{
"license": "SEE LICENSE IN <your-license-filename>",
"repository": "<fill-your-repository-here>",
"dependencies": {
"#angular/animations": "~13.2.0",
"#angular/common": "~13.2.0",
"#angular/compiler": "~13.2.0",
"#angular/core": "~13.2.0",
"#angular/forms": "~13.2.0",
"#angular/http": "8.0.0-beta.10",
"#angular/platform-browser": "~13.2.0",
"#angular/platform-browser-dynamic": "~13.2.0",
"#angular/router": "~13.2.0",
"base-64": "^0.1.0",
"cross-env": "^5.2.0",
"lodash": "^4.17.11",
"nativescript-appversion": "1.4.4",
"#nativescript/camera": "5.0.10",
"nativescript-couchbase": "1.0.18",
"#nativescript/email": "2.0.5",
"#nativescript/geolocation": "8.0.2",
"nativescript-orientation": "2.2.5",
"nativescript-phone": "3.0.3",
"nativescript-screen-orientation": "2.0.0",
"nativescript-theme-core": "~1.0.4",
"reflect-metadata": "~0.1.13",
"rxjs": "~7.5.0",
"rxjs-compat": "^6.4.0",
"utf8": "^3.0.0",
"zone.js": "~0.11.5",
"#nativescript/core": "~8.2.0",
"#nativescript/angular": "^13.0.0"
},
"devDependencies": {
"#angular-devkit/build-angular": "~13.2.0",
"#angular/compiler-cli": "~13.2.0",
"#nativescript/ios": "8.2.1",
"#nativescript/schematics": "~0.5.0",
"#nativescript/types": "~8.2.0",
"#nativescript/webpack": "5.0.6",
"#ngtools/webpack": "~13.2.0",
"typescript": "~4.5.5"
},
"readme": "NativeScript Application",
"main": "./src/main.ts"
}
tsconfig.json
{
"compilerOptions": {
"module": "esnext",
"target": "es2017",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"noEmitHelpers": true,
"noEmitOnError": true,
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"lib": [
"dom",
"es2017"
],
"baseUrl": ".",
"paths": {
"~/*": ["src/*"],
"#/*": ["src/*"]
},
"moduleResolution": "node",
"removeComments": false
},
"include": [ "src/**/*.ios.ts"],
"files": ["./src/main.ts", "./reference.d.ts"],
"exclude": [
"node_modules",
"platforms"
]
}
webpackconfig.js
const webpack = require("#nativescript/webpack");
module.exports = (env) => {
webpack.init(env);
return webpack.resolveConfig();
};
i was missing this one in the main.ts
runNativeScriptAngularApp({
});
When i added it worked!
runNativeScriptAngularApp({
appModuleBootstrap: () => platformNativeScript().bootstrapModule(AppModule),
});

Ionic 5 App not Refreshing HomeScreen after Login

I have an Ionic App that was created with Ionic 3 and recently updated to Ionic 5 (Angular 8).
The App is running in Chrome Browser (with ionic serve) without any problems, and everything is working the way it should.
For almost 2 weeks I am trying to make a version running for iOS.
I have the latest XCode 12 installed and tried to create a build with ionic cordova build ios --prod. After the build is finished I open the Project-File in xCode and try to test it on my iPhone.
The Login-Screen appears and the user can authenticate by clicking a login button. This opens a InAppBrowser where the user can be authenticated. After a successful authentication the InAppBrowser closes and a logged-in flag is set to true.
Usually, this should allow to show some tiles content within the home screen.
For some reason the page is not refreshed and it does not show the tiles.
The first Rest-request seems to be working fine and I can see after I was debugging the home-page that the user-information is received successfully.
In xCode I can see some error messages:
2021-03-11 10:37:06.003856+0100 EPDM[795:40716] WF: _WebFilterIsActive returning: NO
2021-03-11 10:37:06.370470+0100 EPDM[795:40716] [ProcessSwapping] 0x108c981a8 - ProvisionalPageProxy::didFailProvisionalLoadForFrame: pageProxyID=13 webPageID=23, frameID=3, navigationID=3
2021-03-11 10:37:06.370687+0100 EPDM[795:40716] [Process] 0x102079218 - [pageProxyID=13, webPageID=18, PID=804] WebPageProxy::didFailProvisionalLoadForFrame: frameID = 3, domain = NSURLErrorDomain, code = -1004
2021-03-11 10:37:06.371059+0100 EPDM[795:40716] webView:didFailProvisionalNavigation - -1004: Could not connect to the server.
2021-03-11 10:37:15.669294+0100 EPDM[795:40716] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
My question is what might be causing this error?
Thank you in advance for your answers.
"config": {
"ionic_webpack": "./config/webpack.config.js"
},
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"fix": "tslint --c tslint.json 'src/**/*.ts"
},
"dependencies": {
"#angular/animations": "8.2.14",
"#angular/common": "8.2.14",
"#angular/compiler": "8.2.14",
"#angular/compiler-cli": "8.2.14",
"#angular/core": "8.2.14",
"#angular/flex-layout": "^8.0.0-beta.27",
"#angular/forms": "8.2.14",
"#angular/http": "7.2.16",
"#angular/platform-browser": "8.2.14",
"#angular/platform-browser-dynamic": "8.2.14",
"#angular/router": "8.2.14",
"#ionic-native-mocks/http": "^2.0.12",
"#ionic-native/abbyy-rtr": "^5.31.1",
"#ionic-native/barcode-scanner": "^5.31.1",
"#ionic-native/camera": "^5.31.1",
"#ionic-native/core": "^5.31.1",
"#ionic-native/http": "^5.31.1",
"#ionic-native/in-app-browser": "^5.31.1",
"#ionic-native/ionic-webview": "^5.31.1",
"#ionic-native/splash-screen": "^5.31.1",
"#ionic-native/status-bar": "^5.31.1",
"#ionic/angular": "^5.5.4",
"#ionic/angular-toolkit": "2.3.3",
"#ionic/storage": "2.2.0",
"#ngx-translate/core": "^9.1.1",
"#ngx-translate/http-loader": "^2.0.1",
"cordova-android": "^6.4.0",
"cordova-browser": "^4.1.0",
"cordova-ios": "6.2.0",
"cordova-plugin-3dtouch": "1.3.5",
"cordova-plugin-abbyy-rtr-sdk": "^1.0.4",
"hammerjs": "^2.0.8",
"ionicons": "5.4.0",
"lodash": "^4.17.20",
"ngx-progressbar": "^2.1.1",
"npm": "^6.14.8",
"phonegap-plugin-barcodescanner": "^8.1.0",
"rxjs": "^6.6.3",
"rxjs-compat": "^6.6.3",
"svg-pan-zoom": "^3.6.0",
"sw-toolbox": "3.6.0",
"tslint-fix": "^0.1.3",
"zone.js": "0.11.4"
},
"devDependencies": {
"#ahovakimyan/cordova-plugin-wkwebviewxhrfix": "git+https://github.com/AraHovakimyan/cordova-plugin-wkwebviewxhrfix.git",
"#angular-devkit/build-angular": "0.803.19",
"#angular-devkit/build-webpack": "0.803.19",
"#angular-devkit/core": "8.2.2",
"#angular-devkit/schematics": "8.2.2",
"#angular/cli": "8.3.29",
"#angular/compiler-cli": "8.2.14",
"#babel/compat-data": "7.8.0",
"#babel/preset-env": "7.8.0",
"#types/node": "^8.0.45",
"angular2-template-loader": "^0.6.2",
"babel-loader": "8.1.0",
"cordova-plugin-advanced-http": "^3.1.0",
"cordova-plugin-camera": "^4.1.0",
"cordova-plugin-cookies": "0.0.2",
"cordova-plugin-deeplinks": "^1.1.1",
"cordova-plugin-device": "^1.1.7",
"cordova-plugin-file": "^6.0.2",
"cordova-plugin-inappbrowser": "^5.0.0",
"cordova-plugin-ionic-webview": "^5.0.0",
"cordova-plugin-keychain-touch-id": "^3.2.1",
"cordova-plugin-splashscreen": "^6.0.0",
"cordova-plugin-whitelist": "^1.3.4",
"cordova-plugin-wkwebviewxhrfix": "^0.1.0",
"cordova-sqlite-storage": "^5.1.0",
"html-loader": "^0.5.1",
"ionic-plugin-keyboard": "^2.2.1",
"istanbul-instrumenter-loader": "^3.0.0",
"null-loader": "^0.1.1",
"phonegap-plugin-barcodescanner": "^8.1.0",
"ts-loader": "^3.0.3",
"ts-node": "^3.0.2",
"typescript": "3.5.1",
"ws": "3.3.2"
},
"description": "An EpdmMobileApps project",
"cordova": {
"plugins": {
"cordova-sqlite-storage": {},
"cordova-plugin-keychain-touch-id": {},
"ionic-plugin-keyboard": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-deeplinks": {},
"phonegap-plugin-barcodescanner": {
"ANDROID_SUPPORT_V4_VERSION": "27.+"
},
"cordova-plugin-camera": {
"ANDROID_SUPPORT_V4_VERSION": "27.+"
},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-cookies": {},
"cordova-plugin-advanced-http": {
"OKHTTP_VERSION": "3.10.0"
},
"cordova-plugin-ionic-webview": {},
"cordova-plugin-wkwebviewxhrfix": {}
},
"platforms": [
"ios",
"android"
]
}
}
I did try to pin-point the code that was causing this problem.
I was commenting out some steps during the login that might cause problems.
After commenting out the call of the InAppBrowser, i did not see any more errors.
I realized, that the redirect that i received from the backend caused an loaderror -event within the InAppBrowser. This is what created the
'''
webView:didFailProvisionalNavigation - -1004: Could not connect to the server.
'''
error message.
My other code was called from within this InAppBrowser loaderror Event, and i guess that the WebView is not able to handle this after an error occurred.

Error: cannot find module "." when deploying to ios - Ionic 3

Error Description:
I built the project on VsCode using "ionic cordova build ios --prod", opened it in XCode (project.xcworkspace) and deployed it to an iPhone. However, when I open the app it gets stuck on a blank page. I debugged it using safari's development tool and I got the following error on console: "Error: cannot find module "." ".
What I've tried:
I researched the error and tried a couple solution, but no luck.
Changed typescript version to "~2.6.2", "2.6.2", "2.8.3"
Removed "^" from typescript version;
Changed app-script version to "3.1.9", "3.2.1", "3.2.2", "3.2.3"
Went through my imports to see if any of them had "/udm", but none of them do;
Also tried different XCode versions: 8, 9, 10 and 12;
Tried adding different versions of ios platform: 4.5.0, 4.5.5, 5.0.1, 5.1.0 and the latest;
Here are some links I visited, had no luck with their solutions though:
https://forum.ionicframework.com/t/build-in-prod-mode-cannot-find-module/132231/7
Ionic 3: Build in “prod” mode: Cannot find module “.”
https://forum.ionicframework.com/t/runtime-error-cannot-find-module/93967/3
How can I resolve Ionic Uncaught Error: Cannot find module "." when adding new page?
Info:
ionic/cli-utils : 1.9.2
ionic (Ionic CLI) : 3.9.2
global packages:
Cordova CLI : 10.0.0
local packages:
#ionic/app-scripts : 3.2.4
Cordova Platforms : ios 5.1.0
Ionic Framework : ionic-angular 3.9.2
System:
ios-deploy : 1.11.3
Node : v14.15.0
npm : 6.14.8
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b
Package.json:
{
"name": "name",
"version": "0.0.1",
"author": "author",
"homepage": "https://homepage.com",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"#angular/animations": "5.2.11",
"#angular/common": "5.2.11",
"#angular/compiler": "5.2.11",
"#angular/compiler-cli": "5.2.11",
"#angular/core": "5.2.11",
"#angular/forms": "5.2.11",
"#angular/http": "^7.2.10",
"#angular/platform-browser": "5.2.11",
"#angular/platform-browser-dynamic": "5.2.11",
"#grpc/grpc-js": "^1.1.7",
"#ionic-native/app-availability": "^4.20.0",
"#ionic-native/app-version": "^4.15.0",
"#ionic-native/barcode-scanner": "^4.9.0",
"#ionic-native/camera": "^4.7.0",
"#ionic-native/core": "4.7.0",
"#ionic-native/file": "^4.20.0",
"#ionic-native/file-path": "^4.7.0",
"#ionic-native/fingerprint-aio": "^4.20.0",
"#ionic-native/firebase": "^4.20.0",
"#ionic-native/firebase-crashlytics": "^5.30.0",
"#ionic-native/header-color": "^4.17.0",
"#ionic-native/http": "^4.20.0",
"#ionic-native/in-app-browser": "^3.1.0",
"#ionic-native/ionic-webview": "^5.0.0",
"#ionic-native/pin-dialog": "^4.20.0",
"#ionic-native/push": "^3.14.0",
"#ionic-native/social-sharing": "^4.15.0",
"#ionic-native/splash-screen": "4.7.0",
"#ionic-native/status-bar": "^4.7.0",
"#ionic-native/vibration": "^4.8.0",
"#ionic/storage": "2.1.3",
"angularfire2": "^5.4.2",
"brmasker-ionic-3": "^1.5.3",
"cordova-ios": "4.5.5",
"cordova-plugin-appavailability": "^0.4.2",
"cordova-plugin-headercolor": "^1.0.0",
"cordova-plugin-inappbrowser": "^3.1.0",
"cordova-plugin-ionic-webview": "^4.1.3",
"cordova-plugin-pin-dialog": "^0.1.3",
"cordova-plugin-splashscreen": "6.0.0",
"cordova-plugin-statusbar": "^2.4.3",
"cordova-plugin-vibration": "^3.1.1",
"cordova-plugin-whitelist": "1.3.4",
"crypto-js": "^3.1.9-1",
"firebase": "^7.2.4",
"ionic-angular": "3.9.2",
"ionic-stepper": "^1.1.0",
"ionicons": "3.0.0",
"ngx-barcode": "^0.2.4",
"ngx-qrcode2": "0.0.9",
"onesignal-cordova-plugin": "^2.11.1",
"rxjs": "^6.4.0",
"rxjs-compat": "^6.4.0",
"semver": "^7.3.2",
"sw-toolbox": "^3.6.0",
"zone.js": "0.8.26"
},
"devDependencies": {
"#ionic/app-scripts": "3.2.4",
"#types/node": "7.0.7",
"cordova-android": "^8.0.0",
"cordova-plugin-advanced-http": "^3.1.0",
"cordova-plugin-androidx": "^3.0.0",
"cordova-plugin-androidx-adapter": "^1.1.1",
"cordova-plugin-app-version": "^0.1.12",
"cordova-plugin-camera": "^4.1.0",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-file": "^6.0.2",
"cordova-plugin-filepath": "^1.5.6",
"cordova-plugin-fingerprint-aio": "git+https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio.git#f8e5588011506b4a386cbfa16346cd6b5ab85349",
"cordova-plugin-firebase-lib": "^5.1.1",
"cordova-plugin-ionic-keyboard": "2.0.5",
"cordova-plugin-x-socialsharing": "^5.4.1",
"es6-promise-plugin": "^4.2.2",
"phonegap-plugin-barcodescanner": "^8.0.0",
"typescript": "3.2.4"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-vibration": {},
"cordova-plugin-headercolor": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-pin-dialog": {},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-appavailability": {},
"onesignal-cordova-plugin": {},
"cordova-plugin-camera": {
"ANDROID_SUPPORT_V4_VERSION": "27.+"
},
"cordova-plugin-filepath": {},
"cordova-plugin-file": {},
"cordova-plugin-advanced-http": {},
"cordova-plugin-ionic-webview": {
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
},
"cordova-plugin-fingerprint-aio": {
"FACEID_USAGE_DESCRIPTION": "Confirme sua digital"
},
"cordova-plugin-firebase-lib": {},
"cordova-plugin-androidx": {},
"cordova-plugin-androidx-adapter": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-device": {},
"cordova-plugin-app-version": {},
"cordova-plugin-ionic-keyboard": {},
"phonegap-plugin-barcodescanner": {},
"cordova-plugin-x-socialsharing": {
"PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION": "This app requires photo library access to function properly.",
"PHOTO_LIBRARY_USAGE_DESCRIPTION": "This app requires photo library access to function properly."
},
"cordova-plugin-splashscreen": {}
},
"platforms": [
"ios"
]
}
}

Ionic 3 - your app contains non-public api usage

i have a ionic 3 app that works with emulator android ios and it is publish on google store but when i tryed to upload on apple store it give me back "your app contains non-public api usage"
I'm trying to check all plugin list that may have caused the problem; different from an app I published several days ago are:
barcodescanner
call-number
email-composer
geolocation
leaflet
this is my package.json:
{
"name": "Nome App",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"start": "ionic-app-scripts serve",
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint"
},
"dependencies": {
"#angular/animations": "5.2.11",
"#angular/common": "5.2.11",
"#angular/compiler": "5.2.11",
"#angular/compiler-cli": "5.2.11",
"#angular/core": "5.2.11",
"#angular/forms": "5.2.11",
"#angular/http": "5.2.11",
"#angular/platform-browser": "5.2.11",
"#angular/platform-browser-dynamic": "5.2.11",
"#ionic-native/barcode-scanner": "^4.20.0",
"#ionic-native/call-number": "^4.18.0",
"#ionic-native/core": "~4.18.0",
"#ionic-native/email-composer": "^4.18.0",
"#ionic-native/geolocation": "^4.20.0",
"#ionic-native/in-app-browser": "^4.18.0",
"#ionic-native/network": "^4.20.0",
"#ionic-native/splash-screen": "~4.18.0",
"#ionic-native/status-bar": "~4.18.0",
"#ionic/storage": "2.2.0",
"call-number": "1.0.1",
"cordova-android": "7.1.4",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-email-composer": "0.9.2",
"cordova-plugin-geolocation": "4.0.1",
"cordova-plugin-inappbrowser": "3.0.0",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-ionic-webview": "^3.1.2",
"cordova-plugin-network-information": "2.0.1",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"ionic-angular": "3.9.3",
"ionicons": "3.0.0",
"leaflet": "^1.5.1",
"phonegap-plugin-barcodescanner": "8.0.1",
"rxjs": "5.5.11",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.29"
},
"devDependencies": {
"#ionic/app-scripts": "3.2.1",
"typescript": "~2.6.2"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-network-information": {},
"phonegap-plugin-barcodescanner": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
},
"cordova-plugin-ionic-keyboard": {},
"mx.ferreyra.callnumber": {},
"cordova-plugin-email-composer": {
"ANDROID_SUPPORT_V4_VERSION": "27.+"
},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-geolocation": {}
},
"platforms": [
"android"
]
}
}
What version of cordova-ios are you using? I had the same error, after trying different things for a couple of days I deleted the plugins folder, then compiled for cordova-ios#4.5.5 and it worked.
ionic cordova platform add ios#4.5.5

Why bootstrap not getting loaded properly at Angular CLI MVC based project

I dont know whay bootstrap is not loaded properly at angular CLI Typescript based ASP.NET MVC based project. Somehow, seems default CSS files are overriden or i dont know exactly about the problem and no idea how to figure it out. I almost tried all solutions available on stackoverflow.com
For example following Bootstrap snippet not showing panel headers.
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">Panel heading</div>
<div class="panel-body">
<p>...</p>
</div>
</div>
I just created Angular app via CLI and modified package.json within the app. I did not copied the whole content at root folder.
So my solution structure is :
Moreover, part of angular.json is :
"schematics": {
"#schematics/angular:component": {
"styleext": "scss"
}
},
"architect": {
"build": {
"builder": "#angular-devkit/build-angular:browser",
"options": {
"assets": [
"src/favicon.ico",
"src/assets"
],
"index": "src/index.html",
"main": "src/main.ts",
"outputPath": "../wwwroot/dist",
"polyfills": "src/polyfills.ts",
"scripts": [
"node_modules/jquery/dist/jquery.min.js",
"node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"
],
"styles": [
"node_modules/bootstrap/scss/bootstrap.scss"
"src/styles.scss"
],
"tsConfig": "src/tsconfig.app.json"
},
.............
and packages.json is :
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"#angular/animations": "^7.1.3",
"#angular/cdk": "^7.1.1",
"#angular/common": "~7.1.0",
"#angular/compiler": "~7.1.0",
"#angular/core": "~7.1.0",
"#angular/forms": "~7.1.0",
"#angular/material": "^7.1.1",
"#angular/platform-browser": "~7.1.0",
"#angular/platform-browser-dynamic": "~7.1.0",
"#angular/router": "~7.1.0",
"core-js": "^2.5.4",
"rxjs": "~6.3.3",
"tslib": "^1.9.0",
"zone.js": "~0.8.26",
"bootstrap": "4.1.3",
"jquery": "^3.3.1"
},
"devDependencies": {
"#angular-devkit/build-angular": "~0.11.0",
"#angular/cli": "~7.1.3",
"#angular/compiler-cli": "~7.1.0",
"#angular/language-service": "~7.1.0",
"#types/jasmine": "~2.8.8",
"#types/jasminewd2": "~2.0.3",
"#types/jquery": "^3.3.27",
"#types/node": "~8.9.4",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.1.1",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~3.1.6"
}
Any body can let me know how to resolve this frustrating functioning error?
Since from what I can tell you don't even need the scss in your compile pipeline and you just need the css, change this;
"styles": [
"node_modules/bootstrap/scss/bootstrap.scss"
"src/styles.scss"
],
to this;
"styles": [
"./node_modules/bootstrap/dist/css/bootstrap.min.css"
"src/styles.scss"
],
...and ya should be good. Cheers.

Resources