Skip to content
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

Open
PrakashKularatnam opened this issue Oct 25, 2017 · 4 comments
Open

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

PrakashKularatnam opened this issue Oct 25, 2017 · 4 comments

Comments

@PrakashKularatnam
Copy link

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

@PrakashKularatnam PrakashKularatnam changed the title Ionic Cordova Build --prod issue Ionic Cordova Build --prod issue @angular\compiler\compiler Oct 25, 2017
@speedfl
Copy link

speedfl commented Nov 12, 2017

Hello

Dupe: #1309

@NOaMTL
Copy link

NOaMTL commented Nov 15, 2017

Have the same issue, even with the @ionic/app-scripts : 3.1.2

@wjacksondocuwrx
Copy link

Did you try ./node_modules/.bin/ngc?

@premji1528
Copy link

@wjacksondocuwrx how to use this command

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants