Could not create simulator with name 'appiumTest-9AA7302F-42A2-4F29-9623-34CF4E6FFE28-Iphone 8', device type id 'Iphone 8' and runtime id '13.3'. Reason: 'simctl error running 'create': Invalid device type: Iphone 8' code example

Example: error TS2304: Cannot find name 'NgForm'.

/*
The answer of this context "error TS2304: Cannot find name 'NgForm'."

There are chances of arising this error in angular when we import 'NgForm' from '@angular/forms' in .component.ts file.

To resolve this error you may have added below code line in app.module.ts file
*/

import { FormsModule } from '@angular/forms';

@NgModule({
---------------
---------------
  imports: [     
        BrowserModule,
		FormsModule
  ]
---------------
---------------
}) 

/*
I hope that it will help you.
Namaste
*/

Tags:

Misc Example