Categories
Development

How to run Ionic project with capacitor?

I want to run my Ionic project with capacitor and I have tried different way to run Ionic project with capacitor even I have created an Ionic blank project using Ionic CLI but I can’t do that because of this android studio error: error: resource style/Base.V28.Theme.AppCompat.Light (aka com.mahdi.myapp2:style/Base.V28.Theme.AppCompat.Light) not found. This error occurs when I […]

Categories
Development

Ionic App Crashing at Launchin on Android

I was building my Ionic app many times without any problem, suddenly, I changed PC and re-built the app, then it crashed. Android Version:8.0.0 Here is my ionic info output Ionic: ionic (Ionic CLI) : 4.10.3 (C:\Users\developer\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : @ionic/angular 4.11.7 @angular-devkit/build-angular : 0.12.4 @angular-devkit/schematics : 7.2.4 @angular/cli : 7.2.4 @ionic/angular-toolkit : 1.4.1 Cordova: […]

Categories
Development

Uncaught TypeError: _firebase_app__WEBPACK_IMPORTED_MODULE_0___default.a.registerVersion is not a function in IONIC v4

problem when run/deploy the app (ionic serve) in the console see this error Uncaught TypeError: _firebase_app__WEBPACK_IMPORTED_MODULE_0___default.a.registerVersion is not a function at auth.esm.js:372 at auth.esm.js:372 at Module.<anonymous> (auth.esm.js:372) at Module../node_modules/@firebase/auth/dist/auth.esm.js (auth.esm.js:374) at __webpack_require__ (bootstrap:83) at Module../node_modules/firebase/auth/dist/index.esm.js (index.esm.js:1) at __webpack_require__ (bootstrap:83) at Module../node_modules/@angular/fire/auth/auth.module.js (auth.module.js:1) at __webpack_require__ (bootstrap:83) at Module../node_modules/@angular/fire/auth/public_api.js (public_api.js:1) the auth.esm.js file shows in the end […]

Categories
Development

Angular CLI E2E Testing Wrong ChromeDriver

I am using the angular CLI. I created it with: ng new MyFirstApp I then tried to run the end to end tests with: ng e2e I got the following error message: E/launcher – session not created: This version of ChromeDriver only supports Chrome version 79 Driver info: chromedriver=79.0.3945.16 at Object.checkLegacyResponse (C:\TestProj\Angular\MyFirstApp\node_modules\selenium-webdriver\lib\error.js:546:15) at parseHttpResponse (C:\TestProj\Angular\MyFirstApp\node_modules\selenium-webdriver\lib\http.js:509:13) […]

Categories
Development

ERROR in node_modules/@types/lodash/common/collection.d.ts(1783,24): error TS2304: Cannot find name ‘Exclude’

Whenever I try to run ng serve command getting the following error. Below is the error detail. ERROR in node_modules/@types/lodash/common/collection.d.ts(1783,24): error TS2304: Cannot find name ‘Exclude’. node_modules/@types/lodash/common/collection.d.ts(1805,46): error TS2304: Cannot find name ‘Exclude’. node_modules/@types/lodash/common/collection.d.ts(1827,46): error TS2304: Cannot find name ‘Exclude’. node_modules/@types/lodash/common/object.d.ts(818,12): error TS2304: Cannot find name ‘NonNullable’. node_modules/@types/lodash/common/object.d.ts(827,12): error TS2304: Cannot find name ‘NonNullable’. node_modules/@types/lodash/common/object.d.ts(837,12): […]

Categories
Development

Error Uncaught (in promise): TypeError: Object(…) is not a function

Whenever I start my angular app I have this error: ERROR Error: Uncaught (in promise): TypeError: Object(…) is not a function TypeError: Object(…) is not a function at default~app-app-module~9ca28b07.js:4519 at Module../node_modules/cdk-table-exporter/fesm5/cdk-table-exporter.js (default~app-app-module~9ca28b07.js:4521) at __webpack_require__ (bootstrap:83) at Module../node_modules/mat-table-exporter/fesm5/mat-table-exporter.js (default~app-app-module~9ca28b07.js:5013) at __webpack_require__ (bootstrap:83) at Module../src/app/app-material.module.ts (default~app-app-module~9ca28b07.js:36901) at __webpack_require__ (bootstrap:83) at Module../src/app/app.module.ts (it.js:47) at __webpack_require__ (bootstrap:83) at main-wqrng.js?v=92fb42:43 […]

Categories
Angular Chrome Development Heroku Website

Trying to deploy Angular 8 app to Heroku – build successful but heroku saying ‘Not Found’

I am trying to deploy my angular app to heroku, the builds are successful but when i go to my link, it is telling me ‘Not Found’. I am really confused as to what is going on because I have visited various websites which go through the steps and I am sure that I am […]

Categories
Angular Chrome Development

Error in angular unit test cases: TypeError: this.userService.currentUser.subscribe is not a function

I am getting this error while running angular unit test cases: Test Result SidebarComponent × should create TypeError: this.userService.currentUser.subscribe is not a function sidebar.component.spec.ts describe(‘SidebarComponent’, () => { let fixture: ComponentFixture<SidebarComponent>; let mockUserService; beforeEach(() => { mockUserService = jasmine.createSpyObj([‘currentUser’]); TestBed.configureTestingModule({ imports: [HttpClientTestingModule], declarations: [SidebarComponent], schemas: [NO_ERRORS_SCHEMA], providers: [{ provide: UserService, useValue: mockUserService }] }); fixture […]

Categories
Development Google

`sh: 1: ng: not found` when I run Google Cloud’s `gcloud app deploy`

I’ve looked at both this question and this issue, and tried what they suggest, but neither appear to solve my problem. Below is how I have the project configured; if it matters, I try to deploy through the Cloud Shell. app.yaml: runtime: custom env: flex manual_scaling: instances: 1 Dockerfile: FROM alpine:latest MAINTAINER my-username # update […]

Categories
Development

NPM Install failing with multiple error(error number 1). How to resolve?

I have a angular project. I have my package.json file. I am trying to do npm install. But its failing with an error. Node version – 12.13.0 angular cli – 7.2.4 gyp ERR! configure error gyp ERR! stack Error: unable to verify the first certificate gyp ERR! stack at TLSSocket.onConnectSecure (_tls_wrap.js:1321:34) gyp ERR! stack at […]