wordpress-clients / hybrid

[I don't have time to work on this anymore. Use at your own risk] Build WordPress based PWA, iOS, Android & Windows phones apps in minutes!
MIT License
1.02k stars 348 forks source link

Building the application for production fails #395

Open loganthomison opened 6 years ago

loganthomison commented 6 years ago

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 commented 6 years ago

Hello,

does npm start and npm run build:pwa work?

loganthomison commented 6 years ago

Hi,

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

shprink commented 6 years ago

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 commented 6 years ago

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