Advertisement
Guest User

[Resolvido] Erro ionic run android --prod

a guest
May 23rd, 2017
598
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.02 KB | None | 0 0
  1. ionic-hello-world@0.0.0 ionic:build G:\ionic2\Login_ionic2
  2. > ionic-app-scripts build "--prod"
  3.  
  4. [16:45:39] ionic-app-scripts 1.3.7
  5. [16:45:39] build prod started ...
  6. [16:45:39] clean started ...
  7. [16:45:39] clean finished in 1 ms
  8. [16:45:39] copy started ...
  9. [16:45:39] ngc started ...
  10. [16:45:41] ionic-app-script task: "build"
  11. [16:45:41] Error: Type HomePage in G:/ionic2/Login_ionic2/src/pages/home/home.ts is part of the declarations of 2
  12. modules: AppModule in G:/ionic2/Login_ionic2/src/app/app.module.ts and LoginModule in
  13. G:/ionic2/Login_ionic2/src/pages/home/home.module.ts! Please consider moving HomePage in
  14. G:/ionic2/Login_ionic2/src/pages/home/home.ts to a higher module that imports AppModule in
  15. G:/ionic2/Login_ionic2/src/app/app.module.ts and LoginModule in
  16. G:/ionic2/Login_ionic2/src/pages/home/home.module.ts. You can also create a new NgModule that exports and
  17. includes HomePage in G:/ionic2/Login_ionic2/src/pages/home/home.ts then import that NgModule in AppModule in
  18. G:/ionic2/Login_ionic2/src/app/app.module.ts and LoginModule in
  19. G:/ionic2/Login_ionic2/src/pages/home/home.module.ts.
  20. Error: Type HomePage in G:/ionic2/Login_ionic2/src/pages/home/home.ts is part of the declarations of 2 modules: AppModule in G:/ionic2/Login_ionic2/src/app/app.module.ts and LoginModule in G:/ionic2/Login_ionic2/src/pages/home/home.module.ts! Please consider moving HomePage in G:/ionic2/Login_ionic2/src/pages/home/home.ts to a higher module that imports AppModule in G:/ionic2/Login_ionic2/src/app/app.module.ts and LoginModule in G:/ionic2/Login_ionic2/src/pages/home/home.module.ts. You can also create a new NgModule that exports and includes HomePage in G:/ionic2/Login_ionic2/src/pages/home/home.ts then import that NgModule in AppModule in G:/ionic2/Login_ionic2/src/app/app.module.ts and LoginModule in G:/ionic2/Login_ionic2/src/pages/home/home.module.ts.
  21. at Error (native)
  22. at syntaxError (G:\ionic2\Login_ionic2\node_modules\@angular\compiler\bundles\compiler.umd.js:1550:34)
  23. at CompileMetadataResolver._addTypeToModule (G:\ionic2\Login_ionic2\node_modules\@angular\compiler\bundles\compiler.umd.js:14655:31)
  24. at G:\ionic2\Login_ionic2\node_modules\@angular\compiler\bundles\compiler.umd.js:14543:27
  25. at Array.forEach (native)
  26. at CompileMetadataResolver.getNgModuleMetadata (G:\ionic2\Login_ionic2\node_modules\@angular\compiler\bundles\compiler.umd.js:14534:54)
  27. at addNgModule (G:\ionic2\Login_ionic2\node_modules\@angular\compiler\bundles\compiler.umd.js:23050:58)
  28. at G:\ionic2\Login_ionic2\node_modules\@angular\compiler\bundles\compiler.umd.js:23061:14
  29. at Array.forEach (native)
  30. at _createNgModules (G:\ionic2\Login_ionic2\node_modules\@angular\compiler\bundles\compiler.umd.js:23060:26)
  31.  
  32. npm ERR! Windows_NT 10.0.14393
  33. npm ERR! argv "F:\\Program Files\\nodejs\\node.exe" "F:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "ionic:build" "--" "--prod"
  34. npm ERR! node v6.10.2
  35. npm ERR! npm v3.10.10
  36. npm ERR! code ELIFECYCLE
  37. npm ERR! ionic-hello-world@0.0.0 ionic:build: `ionic-app-scripts build "--prod"`
  38. npm ERR! Exit status 1
  39. npm ERR!
  40. npm ERR! Failed at the ionic-hello-world@0.0.0 ionic:build script 'ionic-app-scripts build "--prod"'.
  41. npm ERR! Make sure you have the latest version of node.js and npm installed.
  42. npm ERR! If you do, this is most likely a problem with the ionic-hello-world package,
  43. npm ERR! not with npm itself.
  44. npm ERR! Tell the author that this fails on your system:
  45. npm ERR! ionic-app-scripts build "--prod"
  46. npm ERR! You can get information on how to open an issue for this project with:
  47. npm ERR! npm bugs ionic-hello-world
  48. npm ERR! Or if that isn't available, you can get their info via:
  49. npm ERR! npm owner ls ionic-hello-world
  50. npm ERR! There is likely additional logging output above.
  51.  
  52. npm ERR! Please include the following file with any support request:
  53. npm ERR! G:\ionic2\Login_ionic2\npm-debug.log
  54.  
  55. G:\ionic2\Login_ionic2>
  56. RAW Paste Data
  57.  
  58. > ionic-hello-world@0.0.0 ionic:build G:\ionic2\Login_ionic2
  59. > ionic-app-scripts build "--prod"
  60.  
  61. [16:45:39] ionic-app-scripts 1.3.7
  62. [16:45:39] build prod started ...
  63. [16:45:39] clean started ...
  64. [16:45:39] clean finished in 1 ms
  65. [16:45:39] copy started ...
  66. [16:45:39] ngc started ...
  67. [16:45:41] ionic-app-script task: "build"
  68. [16:45:41] Error: Type HomePage in G:/ionic2/Login_ionic2/src/pages/home/home.ts is part of the declarations of 2
  69. modules: AppModule in G:/ionic2/Login_ionic2/src/app/app.module.ts and LoginModule in
  70. G:/ionic2/Login_ionic2/src/pages/home/home.module.ts! Please consider moving HomePage in
  71. G:/ionic2/Login_ionic2/src/pages/home/home.ts to a higher module that imports AppModule in
  72. G:/ionic2/Login_ionic2/src/app/app.module.ts and LoginModule in
  73. G:/ionic2/Login_ionic2/src/pages/home/home.module.ts. You can also create a new NgModule that exports and
  74. includes HomePage in G:/ionic2/Login_ionic2/src/pages/home/home.ts then import that NgModule in AppModule in
  75. G:/ionic2/Login_ionic2/src/app/app.module.ts and LoginModule in
  76. G:/ionic2/Login_ionic2/src/pages/home/home.module.ts.
  77. Error: Type HomePage in G:/ionic2/Login_ionic2/src/pages/home/home.ts is part of the declarations of 2 modules: AppModule in G:/ionic2/Login_ionic2/src/app/app.module.ts and LoginModule in G:/ionic2/Login_ionic2/src/pages/home/home.module.ts! Please consider moving HomePage in G:/ionic2/Login_ionic2/src/pages/home/home.ts to a higher module that imports AppModule in G:/ionic2/Login_ionic2/src/app/app.module.ts and LoginModule in G:/ionic2/Login_ionic2/src/pages/home/home.module.ts. You can also create a new NgModule that exports and includes HomePage in G:/ionic2/Login_ionic2/src/pages/home/home.ts then import that NgModule in AppModule in G:/ionic2/Login_ionic2/src/app/app.module.ts and LoginModule in G:/ionic2/Login_ionic2/src/pages/home/home.module.ts.
  78. at Error (native)
  79. at syntaxError (G:\ionic2\Login_ionic2\node_modules\@angular\compiler\bundles\compiler.umd.js:1550:34)
  80. at CompileMetadataResolver._addTypeToModule (G:\ionic2\Login_ionic2\node_modules\@angular\compiler\bundles\compiler.umd.js:14655:31)
  81. at G:\ionic2\Login_ionic2\node_modules\@angular\compiler\bundles\compiler.umd.js:14543:27
  82. at Array.forEach (native)
  83. at CompileMetadataResolver.getNgModuleMetadata (G:\ionic2\Login_ionic2\node_modules\@angular\compiler\bundles\compiler.umd.js:14534:54)
  84. at addNgModule (G:\ionic2\Login_ionic2\node_modules\@angular\compiler\bundles\compiler.umd.js:23050:58)
  85. at G:\ionic2\Login_ionic2\node_modules\@angular\compiler\bundles\compiler.umd.js:23061:14
  86. at Array.forEach (native)
  87. at _createNgModules (G:\ionic2\Login_ionic2\node_modules\@angular\compiler\bundles\compiler.umd.js:23060:26)
  88.  
  89. npm ERR! Windows_NT 10.0.14393
  90. npm ERR! argv "F:\\Program Files\\nodejs\\node.exe" "F:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "ionic:build" "--" "--prod"
  91. npm ERR! node v6.10.2
  92. npm ERR! npm v3.10.10
  93. npm ERR! code ELIFECYCLE
  94. npm ERR! ionic-hello-world@0.0.0 ionic:build: `ionic-app-scripts build "--prod"`
  95. npm ERR! Exit status 1
  96. npm ERR!
  97. npm ERR! Failed at the ionic-hello-world@0.0.0 ionic:build script 'ionic-app-scripts build "--prod"'.
  98. npm ERR! Make sure you have the latest version of node.js and npm installed.
  99. npm ERR! If you do, this is most likely a problem with the ionic-hello-world package,
  100. npm ERR! not with npm itself.
  101. npm ERR! Tell the author that this fails on your system:
  102. npm ERR! ionic-app-scripts build "--prod"
  103. npm ERR! You can get information on how to open an issue for this project with:
  104. npm ERR! npm bugs ionic-hello-world
  105. npm ERR! Or if that isn't available, you can get their info via:
  106. npm ERR! npm owner ls ionic-hello-world
  107. npm ERR! There is likely additional logging output above.
  108.  
  109. npm ERR! Please include the following file with any support request:
  110. npm ERR! G:\ionic2\Login_ionic2\npm-debug.log
  111.  
  112. G:\ionic2\Login_ionic2>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement