Lissy93 / twitter-sentiment-visualisation

🌍 Sentiment analysis over real-time social media data, rendering live charts to visualise trends
211 stars 68 forks source link

NPM Run Build Major Error #13

Closed BasharAG closed 7 years ago

BasharAG commented 7 years ago

After setting the config keys and running the npm and bower installers. I got to the NPM run build in the project's dir. I got the following error:

~/twitter-sentiment-visualisation$ npm run build

> twitter-sentiment-visualisation@0.0.1 build /home/ubuntu/twitter-sentiment-visualisation
> gulp build

[22:17:12] Using gulpfile ~/twitter-sentiment-visualisation/gulpfile.js
[22:17:12] Starting 'build'...
[22:17:12] Starting 'clean'...
[22:17:12] Finished 'clean' after 6.96 ms
[22:17:12] Starting 'scripts'...
[22:17:12] Finished 'scripts' after 43 ms
[22:17:12] Starting 'browserify'...
[22:17:12] Starting 'styles'...
[22:17:12] Starting 'images'...
[22:17:12] Finished 'images' after 1.5 ms

loading.coffee
  ✖  line 18  Line contains a trailing semicolon
  ✖  line 19  Line contains a trailing semicolon
  ✖  line 22  Line exceeds maximum allowed length  Length is 81, max is 80

✖ 3 errors

break-down.coffee
  ✖  line 57  Line contains inconsistent indentation  Expected 2 got 4
  ✖  line 79  Line contains inconsistent indentation  Expected 2 got 4

✖ 2 errors

client-side-source/scripts/analytics.js
  line 1  col 27  ['GoogleAnalyticsObject'] is better written in dot notation.
  line 2  col 36  Missing semicolon.
  line 2  col 56  Expected an assignment or function call and instead saw an expression.
  line 3  col 30  Expected an assignment or function call and instead saw an expression.
  line 3  col 80  Missing semicolon.

  ⚠  5 warnings

[22:17:12] Size analytics.js : 378 B
[22:17:12] Size loading.js : 872 B
[22:17:13] Size Tweet.js : 533 B
[22:17:13] Size async-tweets.js : 705 B

server-side-source/utils/fetch-sentiment-tweets.js
  line 25  col 20  Did you mean to return a conditional instead of an assignment?

  ⚠  1 warning

[22:17:13] Size fetch-sentiment-tweets.js : 999 B
[22:17:13] Size app-config.js : 769 B
[22:17:13] Size keys.js : 467 B
[22:17:13] Size about.js : 176 B

server-side-source/routes/break-down.js
  line 39  col 21  Did you mean to return a conditional instead of an assignment?

  ⚠  1 warning

[22:17:13] Size break-down.js : 2.65 kB
[22:17:13] Size db-api.js : 240 B

server-side-source/api-routes/entity-api.js
  line 15  col 23  Did you mean to return a conditional instead of an assignment?
  line 30  col 21  Did you mean to return a conditional instead of an assignment?

  ⚠  2 warnings

[22:17:13] Size entity-api.js : 789 B

client-side-source/scripts/visualisations/break-down.js
  line 40  col 36  Use '!==' to compare with 'null'.
  line 80  col 31  Did you mean to return a conditional instead of an assignment?

  ⚠  2 warnings

[22:17:13] Size break-down.js : 1.78 kB

client-side-source/scripts/visualisations/comparer.js
  line 42  col 29  Did you mean to return a conditional instead of an assignment?

  ⚠  1 warning

[22:17:13] Size comparer.js : 1.08 kB

page-controls-module.coffee
  ✖  line 21  Line exceeds maximum allowed length  Length is 81, max is 80

✖ 1 error

client-side-source/scripts/page-controls-module.js
  line 14  col 31  Did you mean to return a conditional instead of an assignment?
  line 40  col 21  Did you mean to return a conditional instead of an assignment?
  line 42  col 21  Did you mean to return a conditional instead of an assignment?
  line 48  col 22  Did you mean to return a conditional instead of an assignment?

  ⚠  4 warnings

[22:17:13] Size page-controls-module.js : 859 B
[22:17:13] Size comparison-for-search.js : 679 B

server-side-source/utils/format-for-keyword-vis.js
  line 25  col 20  Use '===' to compare with 'null'.
  line 34  col 30  Don't make functions within a loop.
  line 90  col 26  Did you mean to return a conditional instead of an assignment?

  ⚠  3 warnings

[22:17:13] Size format-for-keyword-vis.js : 3.17 kB
[22:17:13] Size sample-keys.js : 488 B

server-side-source/routes/comparer.js
  line 18  col 30  Don't make functions within a loop.
  line 22  col 53  Don't make functions within a loop.

  ⚠  2 warnings

[22:17:13] Size comparer.js : 1.69 kB

server-side-source/api-routes/tone-api.js
  line 32  col 25  Did you mean to return a conditional instead of an assignment?
  line 45  col 30  Use '!==' to compare with 'null'.
  line 57  col 24  Use '===' to compare with 'null'.

  ⚠  3 warnings

[22:17:13] Size tone-api.js : 1.27 kB

client-side-source/scripts/visualisations/comparison.js
  line 26   col 102  Use '!==' to compare with 'null'.
  line 156  col 59   Did you mean to return a conditional instead of an assignment?

  ⚠  2 warnings

[22:17:13] Size comparison.js : 4.98 kB

server-side-source/utils/format-tweets-for-map.js
  line 36  col 34  Use '===' to compare with 'null'.
  line 66  col 14  Don't make functions within a loop.
  line 82  col 36  Use '!==' to compare with 'null'.
  line 85  col 43  Use '===' to compare with 'null'.
  line 88  col 43  Use '===' to compare with 'null'.

  ⚠  5 warnings

[22:17:13] Size format-tweets-for-map.js : 3.25 kB

server-side-source/routes/entity-extraction.js
  line 29  col 21  Did you mean to return a conditional instead of an assignment?

  ⚠  1 warning

[22:17:13] Size entity-extraction.js : 2.50 kB

server-side-source/api-routes/trending-api.js
  line 49  col 32  Use '===' to compare with 'null'.
  line 92  col 30  Use '===' to compare with 'null'.

  ⚠  2 warnings

[22:17:13] Size trending-api.js : 2.13 kB

entity-extraction.coffee
  ✖  line 32  Line contains inconsistent indentation  Expected 2 got 4
  ✖  line 34  Line contains inconsistent indentation  Expected 2 got 0

✖ 2 errors

[22:17:13] Finished 'browserify' after 1.73 s

client-side-source/scripts/visualisations/entity-extraction.js
  line 42  col 29  Did you mean to return a conditional instead of an assignment?
  line 76  col 21  Did you mean to return a conditional instead of an assignment?
  line 94  col 31  Did you mean to return a conditional instead of an assignment?

  ⚠  3 warnings

[22:17:13] Size entity-extraction.js : 2.77 kB
[22:17:13] Size get-complete-tweets.js : 1.75 kB
[22:17:13] Size globe.js : 1.08 kB

entity-summary.coffee
  ✖  line 8   Line exceeds maximum allowed length  Length is 88, max is 80
  ✖  line 25  Line exceeds maximum allowed length  Length is 102, max is 80

✖ 2 errors

make-click-words.coffee
  ✖  line 12  Line exceeds maximum allowed length  Length is 81, max is 80

✖ 1 error

client-side-source/scripts/visualisations/entity-summary.js
  line 11  col 15  Use '!==' to compare with 'null'.

  ⚠  1 warning

[22:17:13] Size entity-summary.js : 1.45 kB
[22:17:13] Size make-click-words.js : 551 B
[22:17:13] Size hexagons.js : 908 B

make-summary-sentences.coffee
  ✖  line 70  Line exceeds maximum allowed length  Length is 81, max is 80

✖ 1 error

[22:17:14] Size gauge-module.js : 601 B

server-side-source/utils/make-summary-sentences.js
  line 9    col 36  Use '!==' to compare with 'null'.
  line 102  col 31  Use '!==' to compare with 'null'.

  ⚠  2 warnings

[22:17:14] Size make-summary-sentences.js : 3.45 kB
[22:17:14] Size index.js : 483 B
(node:22530) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

hexagons-module.coffee
  ✖  line 106  Line contains a trailing semicolon

✖ 1 error

make-timeline-data.coffee
  ✖  line 28  Line exceeds maximum allowed length  Length is 81, max is 80
  ✖  line 30  Line exceeds maximum allowed length  Length is 81, max is 80

✖ 2 errors

client-side-source/scripts/visualisations/hexagons-module.js
  line 92  col 16  Did you mean to return a conditional instead of an assignment?
  line 96  col 16  Did you mean to return a conditional instead of an assignment?

  ⚠  2 warnings

[22:17:14] Size hexagons-module.js : 3.54 kB
[22:17:14] Size make-timeline-data.js : 2.62 kB
[22:17:14] Size map.js : 1.07 kB
[22:17:14] Size home-page.js : 1.09 kB

server-side-source/utils/stream-handler.js
  line 38  col 34  Use '!==' to compare with 'null'.
  line 41  col 41  Use '===' to compare with 'null'.
  line 44  col 41  Use '===' to compare with 'null'.

  ⚠  3 warnings

[22:17:14] Size stream-handler.js : 2.40 kB
[22:17:14] Size now.js : 202 B
[22:17:15] Size all.min.css : 4.61 kB

radar-module.coffee
  ✖  line 23  Line exceeds maximum allowed length  Length is 81, max is 80

✖ 1 error

streamer.coffee
  ✖  line 5  Class name should be UpperCamelCased  class name: streamer

✖ 1 error

[22:17:15] Size radar-module.js : 2.35 kB

server-side-source/utils/streamer.js
  line 68  col 24  Did you mean to return a conditional instead of an assignment?

  ⚠  1 warning

[22:17:15] Size streamer.js : 2.12 kB
[22:17:15] Size real-time.js : 207 B
[22:17:15] Finished 'styles' after 3.29 s
[22:17:15] Finished 'build' after 3.35 s

real-time-dash.coffee
  ✖  line 31  Line exceeds maximum allowed length  Length is 99, max is 80
  ✖  line 54  Line exceeds maximum allowed length  Length is 85, max is 80
  ✖  line 69  Line contains a trailing semicolon

✖ 3 errors

region-map.coffee
  ✖  line 21  Line exceeds maximum allowed length  Length is 88, max is 80

✖ 1 error

[22:17:15] Size real-time-dash.js : 2.21 kB
[22:17:15] Size watson-tone-analyzer.js : 929 B

server-side-source/routes/region-map.js
  line 63  col 18  Use '===' to compare with 'null'.
  line 77  col 18  Use '===' to compare with 'null'.
  line 88  col 18  Use '===' to compare with 'null'.

  ⚠  3 warnings

[22:17:15] Size region-map.js : 2.68 kB
[22:17:15] Size sa-comparison.js : 2.18 kB

render-tone-bars-module.coffee
  ✖  line 8  Line exceeds maximum allowed length  Length is 109, max is 80

✖ 1 error

[22:17:15] Size render-tone-bars-module.js : 1.04 kB
[22:17:15] Size search.js : 2.62 kB

text-tweets.coffee
  ✖  line 20  Line exceeds maximum allowed length  Length is 87, max is 80

✖ 1 error

[22:17:15] Size text-tweets.js : 1.87 kB
[22:17:17] Size timeline.js : 621 B
[22:17:18] Size word-cloud.bundle.js : 12.52 kB
[22:17:18] Size globe.bundle.js : 16.08 kB
[22:17:18] Size now.bundle.js : 36.21 kB
[22:17:18] Size search-summary.bundle.js : 24.12 kB

text-tweets.coffee
  ✖  line 8   Line exceeds maximum allowed length  Length is 81, max is 80
  ✖  line 28  Line contains a trailing semicolon

✖ 2 errors

[22:17:18] Size regions.bundle.js : 13.11 kB

client-side-source/scripts/visualisations/text-tweets.js
  line 66  col 31  Did you mean to return a conditional instead of an assignment?

  ⚠  1 warning

[22:17:18] Size text-tweets.js : 1.86 kB
[22:17:18] Size tone-analyzer.js : 347 B
[22:17:19] Size scatter-words.bundle.js : 991.78 kB
[22:17:19] Size tone-analysis.bundle.js : 24.02 kB
[22:17:20] Size trending.js : 414 B
[22:17:20] Size word-cloud.js : 621 B
[22:17:22] Size trending-bubble-chart.js : 0 B
[22:17:22] Size word-plot.js : 640 B

trending.coffee
  ✖  line 93   Line exceeds maximum allowed length  Length is 82, max is 80
  ✖  line 102  Line contains a trailing semicolon

✖ 2 errors

client-side-source/scripts/visualisations/trending.js
  line 94   col 25  Use '===' to compare with 'null'.
  line 126  col 34  Did you mean to return a conditional instead of an assignment?
  line 136  col 34  Did you mean to return a conditional instead of an assignment?

  ⚠  3 warnings

[22:17:22] Size trending.js : 3.51 kB
[22:17:25] Size timeline.bundle.js : 4.64 MB
[22:17:25] Size map.bundle.js : 84.43 kB
Lissy93 commented 7 years ago

Nothing major at all, they are lint errors/ warnings 😆 easy fixes. Not sure why they didn't show up on my system 😒 but just caused by having a strict style guide implemented.

BasharAG commented 7 years ago

Oh that makes sense! How do I fix them?

On May 7, 2017, at 1:30 AM, Alicia Sykes notifications@github.com wrote:

Closed #13.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.