Ionic Cordova Build Android -- Prod issue


#1

Error: ./src/app/app.module.ngfactory.ts
Module not found: Error: Can’t resolve ‘@angular/compiler/compiler’ in 'D:\MobileRD\BARMobileClient\src\app’
resolve ‘@angular/compiler/compiler’ in 'D:\MobileRD\BARMobileClient\src\app’
Parsed request is a module
using description file: D:\MobileRD\BARMobileClient\package.json (relative path: ./src/app)
Field ‘browser’ doesn’t contain a valid alias configuration
after using description file: D:\MobileRD\BARMobileClient\package.json (relative path: ./src/app)
resolve as module
looking for modules in D:\MobileRD\BARMobileClient\node_modules
using description file: D:\MobileRD\BARMobileClient\package.json (relative path: ./node_modules)
Field ‘browser’ doesn’t contain a valid alias configuration
after using description file: D:\MobileRD\BARMobileClient\package.json (relative path: ./node_modules)
using description file: D:\MobileRD\BARMobileClient\node_modules@angular\compiler\package.json (relative path: ./compiler)
no extension
Field ‘browser’ doesn’t contain a valid alias configuration
D:\MobileRD\BARMobileClient\node_modules@angular\compiler\compiler doesn’t exist
.ts
Field ‘browser’ doesn’t contain a valid alias configuration
D:\MobileRD\BARMobileClient\node_modules@angular\compiler\compiler.ts doesn’t exist
.js
Field ‘browser’ doesn’t contain a valid alias configuration
D:\MobileRD\BARMobileClient\node_modules@angular\compiler\compiler.js doesn’t exist
.json
Field ‘browser’ doesn’t contain a valid alias configuration
D:\MobileRD\BARMobileClient\node_modules@angular\compiler\compiler.json doesn’t exist
as directory
D:\MobileRD\BARMobileClient\node_modules@angular\compiler\compiler doesn’t exist
[D:\MobileRD\BARMobileClient\node_modules@angular\compiler\compiler]
[D:\MobileRD\BARMobileClient\node_modules@angular\compiler\compiler.ts]
[D:\MobileRD\BARMobileClient\node_modules@angular\compiler\compiler.js]
[D:\MobileRD\BARMobileClient\node_modules@angular\compiler\compiler.json]
[D:\MobileRD\BARMobileClient\node_modules@angular\compiler\compiler]
@ ./src/app/app.module.ngfactory.ts 155:0-51
@ ./src/app/main.ts

Kindly help us on this issue.


#2

I also get same issue.
Kindly help to resolve this.