Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building the application for production fails #395

Open
loganthomison opened this issue Jan 11, 2018 · 4 comments
Open

Building the application for production fails #395

loganthomison opened this issue Jan 11, 2018 · 4 comments

Comments

@loganthomison
Copy link

  • WPHC version: v3.0.0-alpha03
  • Node version: v8.9.1
  • NPM version: 5.5.1

Doing ionic cordova build ios --prod results in the following errors.

Error: ./config/components/actor-list/actor-list.ts
Module build failed: Error: ENOENT: no such file or directory, open '/Users/lthomison/Development/hybrid-alpha/config/components/actor-list/actor-list.js'

@ ./config/components/actor-list/actor-list.ngfactory.ts 16:0-35
@ ./src/app/app.module.ngfactory.ts
@ ./src/app/main.ts,./config/components/index.ts
Module build failed: Error: ENOENT: no such file or directory, open '/Users/lthomison/Development/hybrid-alpha/config/components/index.js'

@shprink
Copy link
Collaborator

shprink commented Jan 11, 2018

Hello,

does npm start and npm run build:pwa work?

@loganthomison
Copy link
Author

Hi,

Both work and ionic cordova build android --minifyjs --minifycss --optimizejs works but ionic cordova build android --aot --minifyjs --minifycss --optimizejs fails.

@shprink
Copy link
Collaborator

shprink commented Jan 12, 2018

maybe you are using an ionic CLI version not compatible with this project.

Try to use the local version of Ionic CLI instead ./node_modules/.bin/ionic <yourCommand>

@loganthomison
Copy link
Author

I have a clean node install with nvm. Here is what ./node_modules/.bin/ionic info produces.

cli packages:

@ionic/cli-utils  : 1.19.0
ionic (Ionic CLI) : 3.19.0

global packages:

cordova (Cordova CLI) : 6.5.0

local packages:
@ionic/app-scripts : 3.1.2
Cordova Platforms : ios 4.4.0
Ionic Framework : ionic-angular 3.8.0

System:
Node : v8.9.3
npm : 2.15.12
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b

Environment Variables:
ANDROID_HOME : not set

Misc:
backend : pro

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

No branches or pull requests

2 participants