Gulp watch shows a lot of eslint errors. Which dependencies are missing?

1

I made the git clone of an Ionic 1 app made with the Generator-M-Ionic

I've done the following steps to install the dependencies:

npm install
bower install
npm install --global gulp-cli

And the prerequisites of the generator itself:

npm i -g yo gulp bower
npm i -g generator-m-ionic

After this the command

gulp watch

The terminal runs normal

[13:58:09] Starting 'jsonlint'...
[13:58:10] Finished 'watch' after 191 ms
[Browsersync] Access URLs:
 ----------------------------------------
       Local: http://localhost:3000
    External: http://192.168.100.235:3000
 ----------------------------------------
          UI: http://localhost:3001
 UI External: http://192.168.100.235:3001
 ----------------------------------------
[Browsersync] Serving files from: app
[Browsersync] Serving files from: .tmp
[13:58:10] Finished 'jsonlint' after 488 ms

But several errors like this below appear later in the terminal and my browser just opens an empty screen.

app/main/controllers/logoutCtrl.js
   2:1   error    "SocialWaveApp" is not defined          no-undef
   3:3   warning  Unexpected console statement            no-console
   4:3   error    "mixpanel" is not defined               no-undef
   8:9   error    "hideSheet" is defined but never used   no-unused-vars
  13:32  error    "index" is defined but never used       no-unused-vars
  17:9   error    "mixpanel" is not defined               no-undef
  22:9   warning  Unexpected console statement            no-console
  30:11  error    "facebookConnectPlugin" is not defined  no-undef
  34:13  warning  Unexpected console statement            no-console

How do I find out what the dependencies are and what's missing?

    
asked by anonymous 20.04.2018 / 19:03

1 answer

0

The problem was with some dependencies, as it seems that only runs on the Mac, so the solution was to switch to using a macbook, now the application works.

Eslint errors only show that my project is not using JavaScript best practices.

    
07.05.2018 / 18:01