Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

Ionic Cordova Build --prod issue @angular\compiler\compiler #1292

@PrakashKularatnam

Description

@PrakashKularatnam

Ionic Cordova build --prod is not working, the build throws the following issue, I have already removed and installed the node modules but the problem is still exist.

Please can you provide me a solution for this issue. We are unable to release the application in production mode now.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions