Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

305
Vistas
Can't use --prod flag with templateURL in Component. Angular 2, Ionic 2

I have component with tepmplateURL from remote site.

@Component({
  templateURL: 'http://192.168.1.100/mobilesiteapp/template/?path=pages/brands/blocks/brandpage'
})

After all I try to compile with --prod flag. ionic run android --prod . But occur the error:

ionic run android --device --prod

> MobileSiteApp@ ionic:build D:\denwerready\-readyscript\modules\mobilesiteapp\a
ppsource
> ionic-app-scripts build "--device" "--prod"

[13:14:48]  ionic-app-scripts 1.3.2
[13:14:48]  build prod started ...
[13:14:48]  clean started ...
[13:14:48]  clean finished in 1 ms
[13:14:48]  copy started ...
[13:14:48]  ngc started ...
[13:14:54]  ionic-app-script task: "build"
[13:14:54]  Error: ENOENT: no such file or directory, open
            'D:\denwerready\-readyscript\modules\mobilesiteapp\appsource\http:\1
92.168.1.100\mobilesiteapp\template\?path=app\app'
Error: ENOENT: no such file or directory, open 'D:\denwerready\-readyscript\modu
les\mobilesiteapp\appsource\http:\192.168.1.100\mobilesiteapp\template\?path=app
\app'

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "run" "ionic:build" "--" "--device" "--prod"

npm ERR! node v7.9.0
npm ERR! npm  v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! MobileSiteApp@ ionic:build: `ionic-app-scripts build "--device" "--prod
"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the MobileSiteApp@ ionic:build script 'ionic-app-scripts buil
d "--device" "--prod"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the MobileSiteApp package
,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ionic-app-scripts build "--device" "--prod"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs MobileSiteApp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls MobileSiteApp
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Чубзик\AppData\Roaming\npm-cache\_logs\2017-04-26T10_14_54
_556Z-debug.log

Why? Why I can't use remote template?

Here is my information about packages

Cordova CLI: 6.5.0
Ionic Framework Version: 3.0.1
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.2
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 8.1
Node Version: v7.9.0
Xcode version: Not installed
over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda