title: How can I resolve Ionic Uncaught Error: Cannot find module "." when adding new page?
body: <blockquote>
    <p>Uncaught Error: Cannot find module "."</p>
  </blockquote>
  
  <pre><code>    at webpackMissingModule (index.js:3)
      at e.code (index.js:3)
      at Object.&lt;anonymous&gt; (index.js:9)
      at __webpack_require__ (bootstrap ee3a374a94c4cd74e2a6:54)
      at Object.256 (main.ts:5)
      at __webpack_require__ (bootstrap ee3a374a94c4cd74e2a6:54)
      at Object.233 (main.js:412)
      at __webpack_require__ (bootstrap ee3a374a94c4cd74e2a6:54)
      at webpackJsonpCallback (bootstrap ee3a374a94c4cd74e2a6:25)
      at main.js:1
  </code></pre>
  
  <p>Before adding new <code>bookmarks</code> pages in app, the app working perfectly fine, After adding <code>bookmarks</code> pages  i'm getting <code>Uncaught Error: Cannot find module "."</code> </p>
  
  <p>Here is my setup</p>
  
  <pre><code>Ionic Framework: 3.9.2
  Angular Core: 5.2.11
  Angular Compiler CLI: 5.2.11
  Node: 8.11.1
  </code></pre>
  
  <p><strong>app.module.ts</strong></p>
  
  <pre><code>import { ContactPage } from '../pages/contact/contact';
  import { BookmarksPage} from'../pages/bookmarks/bookmarks';
  
  @NgModule({
    declarations: [
      ContactPage,
      BookmarksPage,
    ],
    imports: [
      BrowserModule,
      IonicModule.forRoot(MyApp)
    ],
    bootstrap: [IonicApp],
    entryComponents: [
      ContactPage,
      BookmarksPage,
    ],
    providers: [
      StatusBar,
      SplashScreen,
      {provide: ErrorHandler, useClass: IonicErrorHandler}
      ]
    })
  export class AppModule {}
  </code></pre>
  
  <p><strong>bookmarks.ts</strong></p>
  
  <pre><code>import { Component } from '@angular/core';
  import { NavController } from 'ionic-angular';
  
  @Component({
  selector: 'page-bookmarks',
  templateUrl: 'bookmarks.html'
   })
  export class BookmarksPage {
      constructor(public navCtrl: NavController) {
    }
  }
  </code></pre>
  
  <p><a href="https://drive.google.com/open?id=1gZnVUsjprTLszfkYAJq2nyZeAowBJhDG" rel="nofollow noreferrer">index.js in developer console</a></p>
  
  <p>I've tried to clear cache and <code>npm rebuild</code> also.
  In the build (<code>ionic serve</code>) process there is no errors. But in the browser i'm getting Cannot find module, i really want to understand what is going on here</p>