Error: ./src/pages/amor/amor.ngfactory.js

This happens when I ask to execute the command

ionic cordova run android --device --prod --verbose

CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: ‘/home/cyberoach/app/espia’, local: true, binPath:
’/usr/local/lib/node_modules/ionic/bin/ionic’, libPath:
’/home/cyberoach/app/espia/node_modules/ionic/dist/index.js’ }
[DEBUG] Daemon found (pid: 2651)
[INFO] Running app-scripts build: --prod --platform android --target cordova

After “optimization started”

Error: ./src/pages/amor/amor.ngfactory.js

Ionic Info
cli packages: (/home/cyberoach/app/espia/node_modules)

@ionic/cli-utils  : 1.9.2
ionic (Ionic CLI) : 3.9.2

global packages:

Cordova CLI : 7.0.1 

local packages:

@ionic/app-scripts : 2.1.4
Cordova Platforms  : android 6.2.3
Ionic Framework    : ionic-angular 3.5.3

System:

Android SDK Tools : 25.2.5
Node              : v7.10.0
npm               : 4.2.0 
OS                : Linux 4.4

That is not the complete error.

Please post the whole output when running that command.

The forum settings do not allow you to paste any error.
Sending 80% of error messages

[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: '/home/cyberoach/app/espia', local: true, binPath: 
        '/usr/local/lib/node_modules/ionic/bin/ionic', libPath: 
        '/home/cyberoach/app/espia/node_modules/ionic/dist/index.js' }
[DEBUG] New daemon pid: 4490
[INFO] Running app-scripts build: --prod --platform android --target cordova
       
[15:41:00]  build prod started ... 
[15:41:00]  clean started ... 
[15:41:01]  clean finished in 184 ms 
[15:41:01]  copy started ... 
[15:41:01]  ngc started ... 
[15:41:13]  ngc finished in 12.33 s 
[15:41:13]  preprocess started ... 
[15:41:13]  deeplinks started ... 
[15:41:13]  deeplinks finished in 320 ms 
[15:41:13]  optimization started ... 
[15:41:14]  copy finished in 13.46 s 
Error: ./src/pages/amor/amor.ngfactory.js
Module not found: Error: Can't resolve '../../../angularfire2/auth' in '/home/cyberoach/app/espia/src/pages/amor'
resolve '../../../angularfire2/auth' in '/home/cyberoach/app/espia/src/pages/amor'
  using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/pages/amor)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/pages/amor)
    using description file: /home/cyberoach/app/espia/package.json (relative path: ./angularfire2/auth)
      no extension
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/auth doesn't exist
      .js
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/auth.js doesn't exist
      .ts
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/auth.ts doesn't exist
      as directory
        /home/cyberoach/app/espia/angularfire2/auth doesn't exist
[/home/cyberoach/app/espia/angularfire2/auth]
[/home/cyberoach/app/espia/angularfire2/auth.js]
[/home/cyberoach/app/espia/angularfire2/auth.ts]
[/home/cyberoach/app/espia/angularfire2/auth]
 @ ./src/pages/amor/amor.ngfactory.js 43:0-55
 @ ./src/app/app.module.ngfactory.js
 @ ./src/app/main.ts,./src/pages/amor-add-esponto/amor-add-esponto.ngfactory.js
Module not found: Error: Can't resolve '../../../angularfire2/auth' in '/home/cyberoach/app/espia/src/pages/amor-add-esponto'
resolve '../../../angularfire2/auth' in '/home/cyberoach/app/espia/src/pages/amor-add-esponto'
  using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/pages/amor-add-esponto)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/pages/amor-add-esponto)
    using description file: /home/cyberoach/app/espia/package.json (relative path: ./angularfire2/auth)
      no extension
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/auth doesn't exist
      .js
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/auth.js doesn't exist
      .ts
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/auth.ts doesn't exist
      as directory
        /home/cyberoach/app/espia/angularfire2/auth doesn't exist
[/home/cyberoach/app/espia/angularfire2/auth]
[/home/cyberoach/app/espia/angularfire2/auth.js]
[/home/cyberoach/app/espia/angularfire2/auth.ts]
[/home/cyberoach/app/espia/angularfire2/auth]
 @ ./src/pages/amor-add-esponto/amor-add-esponto.ngfactory.js 49:0-55
 @ ./src/app/app.module.ngfactory.js
 @ ./src/app/main.ts,./src/pages/home/home.ngfactory.js
Module not found: Error: Can't resolve '../../../angularfire2/auth' in '/home/cyberoach/app/espia/src/pages/home'
resolve '../../../angularfire2/auth' in '/home/cyberoach/app/espia/src/pages/home'
  using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/pages/home)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/pages/home)
    using description file: /home/cyberoach/app/espia/package.json (relative path: ./angularfire2/auth)
      no extension
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/auth doesn't exist
      .js
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/auth.js doesn't exist
      .ts
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/auth.ts doesn't exist
      as directory
        /home/cyberoach/app/espia/angularfire2/auth doesn't exist
[/home/cyberoach/app/espia/angularfire2/auth]
[/home/cyberoach/app/espia/angularfire2/auth.js]
[/home/cyberoach/app/espia/angularfire2/auth.ts]
[/home/cyberoach/app/espia/angularfire2/auth]
 @ ./src/pages/home/home.ngfactory.js 40:0-55
 @ ./src/app/app.module.ngfactory.js
 @ ./src/app/main.ts,./src/pages/login/login.ngfactory.js
Module not found: Error: Can't resolve '../../../angularfire2/auth' in '/home/cyberoach/app/espia/src/pages/login'
resolve '../../../angularfire2/auth' in '/home/cyberoach/app/espia/src/pages/login'
  using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/pages/login)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/pages/login)
    using description file: /home/cyberoach/app/espia/package.json (relative path: ./angularfire2/auth)
      no extension
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/auth doesn't exist
      .js
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/auth.js doesn't exist
      .ts
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/auth.ts doesn't exist
      as directory
        /home/cyberoach/app/espia/angularfire2/auth doesn't exist
[/home/cyberoach/app/espia/angularfire2/auth]
[/home/cyberoach/app/espia/angularfire2/auth.js]
[/home/cyberoach/app/espia/angularfire2/auth.ts]
[/home/cyberoach/app/espia/angularfire2/auth]
 @ ./src/pages/login/login.ngfactory.js 26:0-55
 @ ./src/app/app.module.ngfactory.js
 @ ./src/app/main.ts,./src/pages/amor/amor.ngfactory.js
Module not found: Error: Can't resolve '../../../angularfire2/database' in '/home/cyberoach/app/espia/src/pages/amor'
resolve '../../../angularfire2/database' in '/home/cyberoach/app/espia/src/pages/amor'
  using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/pages/amor)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/pages/amor)
    using description file: /home/cyberoach/app/espia/package.json (relative path: ./angularfire2/database)
      no extension
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/database doesn't exist
      .js
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/database.js doesn't exist
      .ts
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/database.ts doesn't exist
      as directory
        /home/cyberoach/app/espia/angularfire2/database doesn't exist
[/home/cyberoach/app/espia/angularfire2/database]
[/home/cyberoach/app/espia/angularfire2/database.js]
[/home/cyberoach/app/espia/angularfire2/database.ts]
[/home/cyberoach/app/espia/angularfire2/database]
 @ ./src/pages/amor/amor.ngfactory.js 38:0-59
 @ ./src/app/app.module.ngfactory.js
 @ ./src/app/main.ts,./src/pages/amor-add-esponto/amor-add-esponto.ngfactory.js
Module not found: Error: Can't resolve '../../../angularfire2/database' in '/home/cyberoach/app/espia/src/pages/amor-add-esponto'
resolve '../../../angularfire2/database' in '/home/cyberoach/app/espia/src/pages/amor-add-esponto'
  using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/pages/amor-add-esponto)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/pages/amor-add-esponto)
    using description file: /home/cyberoach/app/espia/package.json (relative path: ./angularfire2/database)
      no extension
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/database doesn't exist
      .js
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/database.js doesn't exist
      .ts
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/database.ts doesn't exist
      as directory
        /home/cyberoach/app/espia/angularfire2/database doesn't exist
[/home/cyberoach/app/espia/angularfire2/database]
[/home/cyberoach/app/espia/angularfire2/database.js]
[/home/cyberoach/app/espia/angularfire2/database.ts]
[/home/cyberoach/app/espia/angularfire2/database]
 @ ./src/pages/amor-add-esponto/amor-add-esponto.ngfactory.js 47:0-59
 @ ./src/app/app.module.ngfactory.js
 @ ./src/app/main.ts,./src/pages/amor-colab/amor-colab.ngfactory.js
Module not found: Error: Can't resolve '../../../angularfire2/database' in '/home/cyberoach/app/espia/src/pages/amor-colab'
resolve '../../../angularfire2/database' in '/home/cyberoach/app/espia/src/pages/amor-colab'
  using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/pages/amor-colab)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/pages/amor-colab)
    using description file: /home/cyberoach/app/espia/package.json (relative path: ./angularfire2/database)
      no extension
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/database doesn't exist
      .js
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/database.js doesn't exist
      .ts
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/database.ts doesn't exist
      as directory
        /home/cyberoach/app/espia/angularfire2/database doesn't exist
[/home/cyberoach/app/espia/angularfire2/database]
[/home/cyberoach/app/espia/angularfire2/database.js]
[/home/cyberoach/app/espia/angularfire2/database.ts]
[/home/cyberoach/app/espia/angularfire2/database]
 @ ./src/pages/amor-colab/amor-colab.ngfactory.js 34:0-59
 @ ./src/app/app.module.ngfactory.js
 @ ./src/app/main.ts,./src/pages/home/home.ngfactory.js
Module not found: Error: Can't resolve '../../../angularfire2/database' in '/home/cyberoach/app/espia/src/pages/home'
resolve '../../../angularfire2/database' in '/home/cyberoach/app/espia/src/pages/home'
  using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/pages/home)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/pages/home)
    using description file: /home/cyberoach/app/espia/package.json (relative path: ./angularfire2/database)
      no extension
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/database doesn't exist
      .js
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/database.js doesn't exist
      .ts
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/database.ts doesn't exist
      as directory
        /home/cyberoach/app/espia/angularfire2/database doesn't exist
[/home/cyberoach/app/espia/angularfire2/database]
[/home/cyberoach/app/espia/angularfire2/database.js]
[/home/cyberoach/app/espia/angularfire2/database.ts]
[/home/cyberoach/app/espia/angularfire2/database]
 @ ./src/pages/home/home.ngfactory.js 38:0-59
 @ ./src/app/app.module.ngfactory.js
 @ ./src/app/main.ts,./src/pages/login/login.ngfactory.js
Module not found: Error: Can't resolve '../../../angularfire2/database' in '/home/cyberoach/app/espia/src/pages/login'
resolve '../../../angularfire2/database' in '/home/cyberoach/app/espia/src/pages/login'
  using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/pages/login)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/pages/login)
    using description file: /home/cyberoach/app/espia/package.json (relative path: ./angularfire2/database)
      no extension
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/database doesn't exist
      .js
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/database.js doesn't exist
      .ts
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/database.ts doesn't exist
      as directory
        /home/cyberoach/app/espia/angularfire2/database doesn't exist
[/home/cyberoach/app/espia/angularfire2/database]
[/home/cyberoach/app/espia/angularfire2/database.js]
[/home/cyberoach/app/espia/angularfire2/database.ts]
[/home/cyberoach/app/espia/angularfire2/database]
 @ ./src/pages/login/login.ngfactory.js 21:0-59
 @ ./src/app/app.module.ngfactory.js
 @ ./src/app/main.ts,./src/app/app.component.ngfactory.js
Module not found: Error: Can't resolve '../../angularfire2/auth' in '/home/cyberoach/app/espia/src/app'
resolve '../../angularfire2/auth' in '/home/cyberoach/app/espia/src/app'
  using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/app)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/app)
    using description file: /home/cyberoach/app/espia/package.json (relative path: ./angularfire2/auth)
      no extension
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/auth doesn't exist
      .js
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/auth.js doesn't exist
      .ts
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/auth.ts doesn't exist
      as directory
        /home/cyberoach/app/espia/angularfire2/auth doesn't exist
[/home/cyberoach/app/espia/angularfire2/auth]
[/home/cyberoach/app/espia/angularfire2/auth.js]
[/home/cyberoach/app/espia/angularfire2/auth.ts]
[/home/cyberoach/app/espia/angularfire2/auth]
 @ ./src/app/app.component.ngfactory.js 37:0-52
 @ ./src/app/app.module.ngfactory.js
 @ ./src/app/main.ts,./src/app/app.module.ngfactory.js
Module not found: Error: Can't resolve '../../angularfire2/auth' in '/home/cyberoach/app/espia/src/app'
resolve '../../angularfire2/auth' in '/home/cyberoach/app/espia/src/app'
  using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/app)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/app)
    using description file: /home/cyberoach/app/espia/package.json (relative path: ./angularfire2/auth)
      no extension
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/auth doesn't exist
      .js
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/auth.js doesn't exist
      .ts
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/auth.ts doesn't exist
      as directory
        /home/cyberoach/app/espia/angularfire2/auth doesn't exist
[/home/cyberoach/app/espia/angularfire2/auth]
[/home/cyberoach/app/espia/angularfire2/auth.js]
[/home/cyberoach/app/espia/angularfire2/auth.ts]
[/home/cyberoach/app/espia/angularfire2/auth]
 @ ./src/app/app.module.ngfactory.js 50:0-52
 @ ./src/app/main.ts,./src/app/app.module.ngfactory.js
Module not found: Error: Can't resolve '../../angularfire2/database' in '/home/cyberoach/app/espia/src/app'
resolve '../../angularfire2/database' in '/home/cyberoach/app/espia/src/app'
  using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/app)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/cyberoach/app/espia/package.json (relative path: ./src/app)
    using description file: /home/cyberoach/app/espia/package.json (relative path: ./angularfire2/database)
      no extension
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/database doesn't exist
      .js
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/database.js doesn't exist
      .ts
        Field 'browser' doesn't contain a valid alias configuration
        /home/cyberoach/app/espia/angularfire2/database.ts doesn't exist
      as directory
        /home/cyberoach/app/espia/angularfire2/database doesn't exist
[/home/cyberoach/app/espia/angularfire2/database]
[/home/cyberoach/app/espia/angularfire2/database.js]
[/home/cyberoach/app/espia/angularfire2/database.ts]
[/home/cyberoach/app/espia/angularfire2/database]
 @ ./src/app/app.module.ngfactory.js 31:0-56
 @ ./src/app/main.ts
[DEBUG] Error: ./src/pages/amor/amor.ngfactory.js
        Module not found: Error: Can't resolve '../../../angularfire2/auth' in 
        '/home/cyberoach/app/espia/src/pages/amor'
        resolve '../../../angularfire2/auth' in 
        '/home/cyberoach/app/espia/src/pages/amor'
          using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./src/pages/amor)
            Field 'browser' doesn't contain a valid alias configuration
          after using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./src/pages/amor)
            using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./angularfire2/auth)
              no extension
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/auth doesn't exist
              .js
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/auth.js doesn't exist
              .ts
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/auth.ts doesn't exist
              as directory
                /home/cyberoach/app/espia/angularfire2/auth doesn't exist
        [/home/cyberoach/app/espia/angularfire2/auth]
        [/home/cyberoach/app/espia/angularfire2/auth.js]
        [/home/cyberoach/app/espia/angularfire2/auth.ts]
        [/home/cyberoach/app/espia/angularfire2/auth]
        @ ./src/pages/amor/amor.ngfactory.js 43:0-55
        @ ./src/app/app.module.ngfactory.js
        @ 
        ./src/app/main.ts,./src/pages/amor-add-esponto/amor-add-esponto.ngfactory.js
        Module not found: Error: Can't resolve '../../../angularfire2/auth' in 
        '/home/cyberoach/app/espia/src/pages/amor-add-esponto'
        resolve '../../../angularfire2/auth' in 
        '/home/cyberoach/app/espia/src/pages/amor-add-esponto'
          using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./src/pages/amor-add-esponto)
            Field 'browser' doesn't contain a valid alias configuration
          after using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./src/pages/amor-add-esponto)
            using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./angularfire2/auth)
              no extension
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/auth doesn't exist
              .js
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/auth.js doesn't exist
              .ts
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/auth.ts doesn't exist
              as directory
                /home/cyberoach/app/espia/angularfire2/auth doesn't exist
        [/home/cyberoach/app/espia/angularfire2/auth]
        [/home/cyberoach/app/espia/angularfire2/auth.js]
        [/home/cyberoach/app/espia/angularfire2/auth.ts]
        [/home/cyberoach/app/espia/angularfire2/auth]
        @ ./src/pages/amor-add-esponto/amor-add-esponto.ngfactory.js 49:0-55
        @ ./src/app/app.module.ngfactory.js
        @ ./src/app/main.ts,./src/pages/home/home.ngfactory.js
        Module not found: Error: Can't resolve '../../../angularfire2/auth' in 
        '/home/cyberoach/app/espia/src/pages/home'
        resolve '../../../angularfire2/auth' in 
        '/home/cyberoach/app/espia/src/pages/home'
          using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./src/pages/home)
            Field 'browser' doesn't contain a valid alias configuration
          after using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./src/pages/home)
            using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./angularfire2/auth)
              no extension
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/auth doesn't exist
              .js
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/auth.js doesn't exist
              .ts
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/auth.ts doesn't exist
              as directory
                /home/cyberoach/app/espia/angularfire2/auth doesn't exist
        [/home/cyberoach/app/espia/angularfire2/auth]
        [/home/cyberoach/app/espia/angularfire2/auth.js]
        [/home/cyberoach/app/espia/angularfire2/auth.ts]
        [/home/cyberoach/app/espia/angularfire2/auth]
        @ ./src/pages/home/home.ngfactory.js 40:0-55
        @ ./src/app/app.module.ngfactory.js
        @ ./src/app/main.ts,./src/pages/login/login.ngfactory.js
        Module not found: Error: Can't resolve '../../../angularfire2/auth' in 
        '/home/cyberoach/app/espia/src/pages/login'
        resolve '../../../angularfire2/auth' in 
        '/home/cyberoach/app/espia/src/pages/login'
          using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./src/pages/login)
            Field 'browser' doesn't contain a valid alias configuration
          after using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./src/pages/login)
            using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./angularfire2/auth)
              no extension
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/auth doesn't exist
              .js
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/auth.js doesn't exist
              .ts
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/auth.ts doesn't exist
              as directory
                /home/cyberoach/app/espia/angularfire2/auth doesn't exist
        [/home/cyberoach/app/espia/angularfire2/auth]
        [/home/cyberoach/app/espia/angularfire2/auth.js]
        [/home/cyberoach/app/espia/angularfire2/auth.ts]
        [/home/cyberoach/app/espia/angularfire2/auth]
        @ ./src/pages/login/login.ngfactory.js 26:0-55
        @ ./src/app/app.module.ngfactory.js
        @ ./src/app/main.ts,./src/pages/amor/amor.ngfactory.js
        Module not found: Error: Can't resolve '../../../angularfire2/database' 
        in '/home/cyberoach/app/espia/src/pages/amor'
        resolve '../../../angularfire2/database' in 
        '/home/cyberoach/app/espia/src/pages/amor'
          using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./src/pages/amor)
            Field 'browser' doesn't contain a valid alias configuration
          after using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./src/pages/amor)
            using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./angularfire2/database)
              no extension
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/database doesn't exist
              .js
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/database.js doesn't exist
              .ts
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/database.ts doesn't exist
              as directory
                /home/cyberoach/app/espia/angularfire2/database doesn't exist
        [/home/cyberoach/app/espia/angularfire2/database]
        [/home/cyberoach/app/espia/angularfire2/database.js]
        [/home/cyberoach/app/espia/angularfire2/database.ts]
        [/home/cyberoach/app/espia/angularfire2/database]
        @ ./src/pages/amor/amor.ngfactory.js 38:0-59
        @ ./src/app/app.module.ngfactory.js
        @ 
        ./src/app/main.ts,./src/pages/amor-add-esponto/amor-add-esponto.ngfactory.js
        Module not found: Error: Can't resolve '../../../angularfire2/database' 
        in '/home/cyberoach/app/espia/src/pages/amor-add-esponto'
        resolve '../../../angularfire2/database' in 
        '/home/cyberoach/app/espia/src/pages/amor-add-esponto'
          using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./src/pages/amor-add-esponto)
            Field 'browser' doesn't contain a valid alias configuration
          after using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./src/pages/amor-add-esponto)
            using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./angularfire2/database)
              no extension
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/database doesn't exist
              .js
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/database.js doesn't exist
              .ts
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/database.ts doesn't exist
              as directory
                /home/cyberoach/app/espia/angularfire2/database doesn't exist
        [/home/cyberoach/app/espia/angularfire2/database]
        [/home/cyberoach/app/espia/angularfire2/database.js]
        [/home/cyberoach/app/espia/angularfire2/database.ts]
        [/home/cyberoach/app/espia/angularfire2/database]
        @ ./src/pages/amor-add-esponto/amor-add-esponto.ngfactory.js 47:0-59
        @ ./src/app/app.module.ngfactory.js
        @ ./src/app/main.ts,./src/pages/amor-colab/amor-colab.ngfactory.js
        Module not found: Error: Can't resolve '../../../angularfire2/database' 
        in '/home/cyberoach/app/espia/src/pages/amor-colab'
        resolve '../../../angularfire2/database' in 
        '/home/cyberoach/app/espia/src/pages/amor-colab'
          using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./src/pages/amor-colab)
            Field 'browser' doesn't contain a valid alias configuration
          after using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./src/pages/amor-colab)
            using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./angularfire2/database)
              no extension
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/database doesn't exist
              .js
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/database.js doesn't exist
              .ts
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/database.ts doesn't exist
              as directory
                /home/cyberoach/app/espia/angularfire2/database doesn't exist
        [/home/cyberoach/app/espia/angularfire2/database]
        [/home/cyberoach/app/espia/angularfire2/database.js]
        [/home/cyberoach/app/espia/angularfire2/database.ts]
        [/home/cyberoach/app/espia/angularfire2/database]
        @ ./src/pages/amor-colab/amor-colab.ngfactory.js 34:0-59
        @ ./src/app/app.module.ngfactory.js
        @ ./src/app/main.ts,./src/pages/home/home.ngfactory.js
        Module not found: Error: Can't resolve '../../../angularfire2/database' 
        in '/home/cyberoach/app/espia/src/pages/home'
        resolve '../../../angularfire2/database' in 
        '/home/cyberoach/app/espia/src/pages/home'
          using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./src/pages/home)
            Field 'browser' doesn't contain a valid alias configuration
          after using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./src/pages/home)
            using description file: /home/cyberoach/app/espia/package.json 
        (relative path: ./angularfire2/database)
              no extension
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/database doesn't exist
              .js
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/database.js doesn't exist
              .ts
                Field 'browser' doesn't contain a valid alias configuration
                /home/cyberoach/app/espia/angularfire2/database.ts doesn't exist
              as directory
                /home/cyberoach/app/espia/angularfire2/database doesn't exist
        [/home/cyberoach/app/espia/angularfire2/database]
        [/home/cyberoach/app/espia/angularfire2/database.js]
        [/home/cyberoach/app/espia/angularfire2/database.ts]

What error message did you get form the forum?

The package you are using seems to reference another package in a way webpack can’t understand. Unfortunately the error message doesn’t really say which package. You should google for

and “angularfire2” and read everything you find.

I have the same error. Can anyone pls help

I was having the same error regarding angularfire2/auth.

The first thing I did was make sure that I had angularfire2 and firebase installed correctly.

npm install firebase angularfire2 --save

Looking at another forum post I found that someone had resolved it by using rc.1 of angularfire2 instead of rc.2


in this post. That worked for me as well.

2 Likes