-
Notifications
You must be signed in to change notification settings - Fork 304
Ionic "serve" trouble #180
Comments
Hello @esase would you be able to provide more info about this issue? Are you trying to use a custom gulp task with our tasks? |
Hello @jgw96, yes I have several npm helphers like:
and also I have custom gulp tasks like this:
When I add the scripts entry, ionic serve's hooks don't work (But other hooks like before_build, etc, work good). Why ? |
Below listed my gulp and package json file:
|
What other information should I provide? |
Hello @jgw96 any news related with my problem? |
Hello @esase , unfortunately I am not able to reproduce this issue. Could you provide a small test repo that i could use to reproduce this issue? Thanks! |
@jgw96 you can easily reproduce this bug, please follow these steps: add empty "scripts" entity inside your package.json, it should like this e.g.:
Than add a test gulp task inside your gulpfile.js (Remove all old content before):
And finally start your ionic with - ionic serve command. You shouldn't see our test log message (This a bug). But when you remove the "scripts" entity from your package.json and run the ionic serve again you should see the our console message |
This issue was moved to ionic-team/ionic-cli#1603 |
When I start the serve command my gulp's hooks don't work. For example:
gulp.task('serve:before', function(cb) ...
But when I remove the scripts section from package.json the serve command works great again.
Steps to reproduce:
gulp.task('serve:before', function() {console.log('here');});
Which @ionic/app-scripts version are you using?
Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
Ionic App Scripts Version: 0.0.36
ios-deploy version: 1.8.4
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v6.8.1
Xcode version: Xcode 8.0 Build version 8A218a
PS: This trouble is absent in ionic 2.0.0!
The text was updated successfully, but these errors were encountered: