the script for menu.ts
import { Component, ViewChild } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';
import * as WC from "woocommerce-api";
import { HomePage } from './../home/home';
import { ProductsByCategoryPage } from '../products-by-category/products-by-category';
@Component({
selector: 'page-menu',
templateUrl: 'menu.html',
})
export class Menu {
homePage: Component;
WooCommerce: any;
categories: any[];
@ViewChild('content') childNavCtrl: NavController;
constructor(public navCtrl: NavController, public navParams: NavParams) {
this.homePage = HomePage
Greetings. iām new with ionic. Does anybody encounter with this error? and how would you solve it? Because the script can be run after i re-save the script. But whenever i run the ionic serve in terminal the first thing shown is this error. So i need to re-save the script every time i run the ionic serve.