New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax errors when accessing Ideas Application #15

Closed
ilieandriuta opened this Issue Oct 5, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@ilieandriuta
Copy link

ilieandriuta commented Oct 5, 2018

STEPS TO REPRODUCE:

  1. Login with Admin
  2. Install Ideas App Pro and get a trial license
  3. Click on Ideas App from Applications Panel

EXPECTED RESULTS

The home page of Ideas App opens without errors.

ACTUAL RESULTS

An error is encountered in the console, having the following stacktrace:

2018-10-05 10:41:35,736 [http://localhost:9111/xwiki/bin/jsx/Ideas/IdeasClass?language=en&docVersion=1.1] WARN  c.x.x.w.s.JsExtension          - Error at line 47, column 42: missing ; before statement. Caused by: [            if($(e).hasClass(voteClass)) {]
2018-10-05 10:41:35,737 [http://localhost:9111/xwiki/bin/jsx/Ideas/IdeasClass?language=en&docVersion=1.1] WARN  c.x.x.w.s.JsExtension          - Error at line 61, column 12: missing } after property list. Caused by: [          });]
2018-10-05 10:41:35,737 [http://localhost:9111/xwiki/bin/jsx/Ideas/IdeasClass?language=en&docVersion=1.1] WARN  c.x.x.w.s.JsExtension          - Error at line 62, column 33: syntax error. Caused by: [          opponent.forEach( e => {]
2018-10-05 10:41:35,737 [http://localhost:9111/xwiki/bin/jsx/Ideas/IdeasClass?language=en&docVersion=1.1] WARN  c.x.x.w.s.JsExtension          - Error at line 64, column 12: missing ; before statement. Caused by: [          });]
2018-10-05 10:41:35,738 [http://localhost:9111/xwiki/bin/jsx/Ideas/IdeasClass?language=en&docVersion=1.1] WARN  c.x.x.w.s.JsExtension          - Error at line 79, column 30: syntax error. Caused by: [          voted.forEach( e => {]
2018-10-05 10:41:35,738 [http://localhost:9111/xwiki/bin/jsx/Ideas/IdeasClass?language=en&docVersion=1.1] WARN  c.x.x.w.s.JsExtension          - Error at line 87, column 35: syntax error. Caused by: [            opponent.forEach( e => {]
2018-10-05 10:41:35,738 [http://localhost:9111/xwiki/bin/jsx/Ideas/IdeasClass?language=en&docVersion=1.1] WARN  c.x.x.w.s.JsExtension          - Error at line 89, column 14: syntax error. Caused by: [            });]
2018-10-05 10:41:35,739 [http://localhost:9111/xwiki/bin/jsx/Ideas/IdeasClass?language=en&docVersion=1.1] WARN  c.x.x.w.s.JsExtension          - Error at line 90, column 11: syntax error. Caused by: [          }]
2018-10-05 10:41:35,739 [http://localhost:9111/xwiki/bin/jsx/Ideas/IdeasClass?language=en&docVersion=1.1] WARN  c.x.x.w.s.JsExtension          - Error at line 91, column 15: syntax error. Caused by: [        } else {]
2018-10-05 10:41:35,739 [http://localhost:9111/xwiki/bin/jsx/Ideas/IdeasClass?language=en&docVersion=1.1] WARN  c.x.x.w.s.JsExtension          - Error at line 93, column 9: syntax error. Caused by: [        }]
2018-10-05 10:41:35,739 [http://localhost:9111/xwiki/bin/jsx/Ideas/IdeasClass?language=en&docVersion=1.1] WARN  c.x.x.w.s.JsExtension          - Error at line 94, column 8: syntax error. Caused by: [      },]
2018-10-05 10:41:35,739 [http://localhost:9111/xwiki/bin/jsx/Ideas/IdeasClass?language=en&docVersion=1.1] WARN  c.x.x.w.s.JsExtension          - Error at line 95, column 14: syntax error. Caused by: [      error : function() {]
2018-10-05 10:41:35,740 [http://localhost:9111/xwiki/bin/jsx/Ideas/IdeasClass?language=en&docVersion=1.1] WARN  c.x.x.w.s.JsExtension          - Error at line 98, column 7: syntax error. Caused by: [      }]
2018-10-05 10:41:35,741 [http://localhost:9111/xwiki/bin/jsx/Ideas/IdeasClass?language=en&docVersion=1.1] WARN  c.x.x.w.s.JsExtension          - Error at line 99, column 6: syntax error. Caused by: [    });]
2018-10-05 10:41:35,741 [http://localhost:9111/xwiki/bin/jsx/Ideas/IdeasClass?language=en&docVersion=1.1] WARN  c.x.x.w.s.JsExtension          - Error at line 100, column 11: invalid return. Caused by: [    return false;]
2018-10-05 10:41:35,742 [http://localhost:9111/xwiki/bin/jsx/Ideas/IdeasClass?language=en&docVersion=1.1] WARN  c.x.x.w.s.JsExtension          - Error at line 101, column 3: syntax error. Caused by: [  }]
2018-10-05 10:41:35,742 [http://localhost:9111/xwiki/bin/jsx/Ideas/IdeasClass?language=en&docVersion=1.1] WARN  c.x.x.w.s.JsExtension          - Error at line 110, column 1: syntax error. Caused by: [});]
2018-10-05 10:41:35,743 [http://localhost:9111/xwiki/bin/jsx/Ideas/IdeasClass?language=en&docVersion=1.1] ERROR c.x.x.w.s.JsExtension          - Runtime error minimizing JSX object: Compilation produced 18 syntax errors.
2018-10-05 10:41:35,744 [http://localhost:9111/xwiki/bin/jsx/Ideas/IdeasClass?language=en&docVersion=1.1] WARN  c.x.x.w.s.JsExtension          - Failed to compress JS extension: null

@ilieandriuta ilieandriuta added this to the 2.0 milestone Oct 5, 2018

@oanalavinia oanalavinia self-assigned this Oct 8, 2018

oanalavinia added a commit to oanalavinia/application-ideas that referenced this issue Oct 8, 2018

oanalavinia added a commit to oanalavinia/application-ideas that referenced this issue Oct 8, 2018

oanalavinia added a commit to oanalavinia/application-ideas that referenced this issue Oct 9, 2018

Syntax errors when accessing Ideas Application xwikisas#15
* this is the version before my 2 commits

oanalavinia added a commit to oanalavinia/application-ideas that referenced this issue Oct 9, 2018

Syntax errors when accessing Ideas Application xwikisas#15
* changed the lambda expression to a function

mflorea added a commit that referenced this issue Oct 9, 2018

Merge pull request #16 from oanalavinia/issue#15
Syntax errors when accessing Ideas Application #15

@oanalavinia oanalavinia closed this Oct 9, 2018

@oanalavinia oanalavinia modified the milestones: 2.0, 1.11 Feb 6, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment