(node:20012) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Invalid data, chunk must be a string or buffer, not object
(node:20012) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handledwill terminate the Node.js process with a non-zero exit code.
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Short description of the problem:
I cannot build android project build fails without errors , if i issue cordova build it also fails.
What behavior are you expecting?
build succeed apk created
Steps to reproduce:
ben@ben-Latitude-E5550:~/projects/ganim/ganim-mobile$ ionic cordova build android --verbose [DEBUG] Reason for not using local CLI: LOCAL_CLI_NOT_FOUND [DEBUG] CLI flags: { interactive: true, confirm: false } [DEBUG] { cwd: '/home/ben/projects/ganim/ganim-mobile', local: false, binPath: '/home/ben/.nvm/versions/node/v8.6.0/lib/node_modules/ionic/bin/ionic', libPath: '/home/ben/.nvm/versions/node/v8.6.0/lib/node_modules/ionic/dist/index.js' } [DEBUG] Daemon found (pid: 18117) [DEBUG] Missing ionic:build:before gulp task. [DEBUG] Invoking sass gulp task. [DEBUG] Missing ionic:build:after gulp task.
Running command: /home/ben/projects/ganim/ganim-mobile/hooks/after_prepare/010_add_platform_class.js /home/ben/projects/ganim/ganim-mobile
(node:20012) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Invalid data, chunk must be a string or buffer, not object (node:20012) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handledwill terminate the Node.js process with a non-zero exit code.
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Which Ionic Version? 1.x or 2.x 1.x
Plunker that shows an example of your issue
For Ionic 1 issues - http://plnkr.co/edit/Xo1QyAUx35ny1Xf9ODHx?p=preview
For Ionic 2 issues - http://plnkr.co/edit/me3Uk0GKWVRhZWU0usad?p=preview
Run
ionic info
from terminal/cmd prompt: (paste output below)cli packages: (/home/ben/.nvm/versions/node/v8.6.0/lib/node_modules)
global packages:
local packages:
System:
Environment Variables:
Misc: