Categories
Mastering Development

Angular application Build

I tried to build an Angular application on my machine by installing node modules and I get the error as attached This application totally works fine when installed on another machine. So its not a problem with the code. But please let me know how I can solve this I just tried did npm install […]

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

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
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
Angular Development HTML

Angular app.component.html is not rendering new component

I am facing some issues trying to rendering my new component in the browser. I have created a new project using the Angular CLI. Also I created a component called list-employees. When I execute ng serve -o, the project is compiled succesfully but the browser does not show anything (blank page both IE and Google […]

Categories
Development

`An uncaught Exception occurred on “main” thread` Error happens on fresh app

I need help. When I create a fresh code sharing app with command ng new -c=@nativescript/schematics ns6 –shared –style=scss, There is an error like below on tns run andriod. Can somebody help me? It is not working on iOS also. But It’s working without code sharing. One thing to note is that: I installed Nativescript […]