I need help making my module accept my newly generated pages. In my terminal I used the ionic command `ionic generate page` to create two new pages in my file tree. One called privacy-policy and the other terms-of-use.
It built the new pages just fine: 

\*\*privacy policy page \*\*

```
/*
  Generated class for the PrivacyPolicy page.

  Ionic pages and navigation.
*/
@Component({
  selector: 'page-privacy-policy',
  templateUrl: 'privacy-policy.html'
})
export class PrivacyPolicyPage {

  constructor(public navCtrl: NavController) {}

  ionViewDidLoad() {
    console.log('Hello PrivacyPolicyPage Page');
  }

}

```

**terms of use page**

```
/*
  Generated class for the TermsOfUse page.

*/
@Component({
  selector: 'page-terms-of-use',
  templateUrl: 'terms-of-use.html'
})
export class TermsOfUsePage {

  constructor(public navCtrl: NavController) {}

  ionViewDidLoad() {
    console.log('Hello TermsOfUsePage Page');
  }

}

```

But when I went to push the pages to a nav controller on another page. I got build errors in the terminal first that said `cannot determine module for component PrivacyPolicyPage` (and terms of use page respectively), then when I added the pages to the module in `app.module.ts`. I got an error that said `unexpected value PrivacyPolicyPage declared by the module AppModule`.

What am I supposed to do here? This is the entire **app.module.ts** file:

```
import { NgModule, ErrorHandler } from '@angular/core';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
   //other imports
import { TermsOfUsePage } from '../terms-of-use/terms-of-use';
import { PrivacyPolicyPage } from '../privacy-policy/privacy-policy';

@NgModule({
    declarations: [
        *otherPages*,
        *otherPages*,
        TermsOfUsePage,
        PrivacyPolicyPage

    ],
    imports: [
        IonicModule.forRoot(MyApp)
    ],
    bootstrap: [IonicApp],
    entryComponents: [
        *otherPages*,
        *otherPages*,
        TermsOfUsePage,
        PrivacyPolicyPage

    ],
    providers: [{provide: ErrorHandler, useClass: IonicErrorHandler}]
})
export class AppModule {}

```
['https://Stackoverflow.com/questions/46272260', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1319386/']
1. Check if its name is precisely `pre-push` (not `pre-push.sh`, not `pre-push.py`, precisely `pre-push`, with no file extension).
2. Check if it's in `.git/hooks/`. If you have set `core.hooksPath=xxx` in the config, make sure it's under the directory `xxx`.
3. Check if it's executable.
4. Check if the user that runs `pre-push` also has the permission to run `npm run coverage`.
check .git/hooks. If it's empty try to uninstall husky and install again. my sh history

```
 ls .git/hooks
 npm uninstall husky
 npm i husky -D
 ls .git/hooks

```

it helped me