Why i get runtime error when i run my script

Hi I am new to ionic, I use get started video to edit my home.ts for basic list,but I get runtime error,please help.

import { Component } from ‘@angular/core’;
import { NavController } from ‘ionic-angular’;

selector: ‘page-home’,
templateUrl: ‘home.html’
export class HomePage {
items: any[];

constructor(public navCtrl: NavController) {
this.items = [];
for(let 1 = 0; 1 < 10; 1++) {
this.items.push({ text: 'Item ’ + 1, id: 1});
itemSelected(item) {

There are a lot of terrible videos on the internet. Start here.

Hi thanks for reply, but I had used the same video as you send me the link for , Ionic crash course (2.x and above) I used the instruction for basic list and the codes in this video and i keep getting run time error.
Typescript Error
Module ‘“C:/Users/sassan/myAPPlewis/src/pages/home/home”’ has no exported member ‘HomePage’.

import { ContactPage } from ‘…/pages/contact/contact’;

import { HomePage } from ‘…/pages/home/home’;

import { TabsPage } from ‘…/pages/tabs/tabs’;
Typescript Error
Argument of type ‘{ homeUrl: string; }’ is not assignable to parameter of type ‘Component’. Object literal may only specify known properties, and ‘homeUrl’ does not exist in type ‘Component’.


homeUrl: ‘home.html’

Typescript Error
Module ‘“C:/Users/sassan/myAPPlewis/src/pages/home/home”’ has no exported member ‘HomePage’.

import { ContactPage } from ‘…/contact/contact’;

import { HomePage } from ‘…/home/home’;

Ionic Framework: 3.9.2
Ionic App Scripts: 3.1.8
Angular Core: 5.0.3
Angular Compiler CLI: 5.0.3
Node: 8.9.4
OS Platform: Windows 10
Navigator Platform: Win32
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299

  1. If you want people here to read your posts, please format them.
  2. Why are you using 3 dots? Is that really in the video?

Please edit your post, it is not very readable at the moment.
Use the </> button above the input field to format your code, command line output or error message (select the text first, then click the button or wrap it in ``` manually). Check the preview if it looks better. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.

Thanks for the respons I have not used 3 dot this is what I get from runtime error.