Closed mwahlhuetter closed 8 months ago
The VueServeCLI
's stdoutFilter
is looking for one of the following messages to trigger the deployment: ['Compiled successfully', 'Compiled with warnings', 'Failed to compile']
. But the ESLint warning in the cue-cli output reads Compiled with 1 warning
, so I guess the VueServeCLI
's stdoutFilter
method needs to be updated to fix that :)
I think @Kaes3kuch3n is referring to this: https://github.com/ionic-team/ionic-cli/blob/87a0dcdfd9f75b91e83c0eb13761d6135b226212/packages/%40ionic/cli/src/lib/project/vue/serve.ts#L66
I fixed this with the following patch (serve.patch
):
59c59
< const compileMsgs = ['Compiled successfully', 'Compiled with warnings', 'Failed to compile'];
---
> const compileMsgs = ['Compiled successfully', 'Compiled with', 'Failed to compile'];
And patched via:
patch -i serve.patch ./node_modules/\@ionic/cli/lib/project/vue/serve.js
Hi everyone,
This was resolved via https://github.com/ionic-team/ionic-cli/pull/5043, and the fix will be available in an upcoming version of the Ionic CLI.
Description: If there are any es-lint warnings present, the android apk is not automatically deployed to the target device.
Steps to Reproduce: Create a new Ionic Project (in my case vue/ionic) and introduce a warning like an unused variable. Run the command
ionic cap run android -l --external
The process will stop after spinning up the vue-cli dev server and won't start the gradle build and the apk deployment.Output:
Expected Output:
My
ionic info
:Other Information: