# Random Error: ENOENT: no such file or directory

**URL:** <https://forum.ionicframework.com/t/random-error-enoent-no-such-file-or-directory/123828>\
**Category:** ionic-v3\
**Created:** [March 8, 2018, 7:47am UTC](https://forum.ionicframework.com/t/random-error-enoent-no-such-file-or-directory/123828 "2018-03-08T07:47:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AKSHAY2110](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@AKSHAY2110](https://forum.ionicframework.com/u/AKSHAY2110)\
**Post date:** [March 8, 2018, 7:47am UTC](https://forum.ionicframework.com/t/random-error-enoent-no-such-file-or-directory/123828/1 "2018-03-08T07:47:37Z")

</div>

![image](https://global.discourse-cdn.com/ionicframework/original/3X/1/8/187a2163161977aee9c17736c15768744bbbda49.png)

I added a page called polls using the CLI and I randomly keep getting this error when I try to push to this page.  
Sometimes this shows up, at other times it works just fine. It feel that ionic is not saving the changes properly cause at times I have to restart ionic serve or hit CTR L + S for the respective page multiple time.

Code is as follows:

home1.ts

```auto
import { PollsPage } from '../Polls/Polls';

    poll(){
      this.navCtrl.push('PollsPage');
    }

```

polls.ts

```auto
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';

import { AddPollPage } from '../add-poll/add-poll';

@IonicPage()
@Component({
  selector: 'page-polls',
  templateUrl: 'polls.html',
})
export class PollsPage {

  constructor(public navCtrl: NavController, public navParams: NavParams) {
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad PollsPage');
  }

}

```

Is there something that I am doing wrong.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:46pm UTC](https://forum.ionicframework.com/t/random-error-enoent-no-such-file-or-directory/123828/2 "2021-07-19T21:46:16Z")

</div>


