0

I run an old application that was built in 2015. Now I'm using Node.js and running the server, everything is good apart from angularjs. Can Anybody tell me what the error is? As I didn't find any help on the internet.

The error is shown in Google Chrome.

SyntaxError: Illegal continue statement
at Object.instantiate (http://localhost:3000/lib/js/angular.min.js:42:56)
at http://localhost:3000/lib/js/angular.min.js:90:32
at Object.link (http://localhost:3000/lib/js/angular-route.min.js:7:274)
at http://localhost:3000/lib/js/angular.min.js:16:71
at la (http://localhost:3000/lib/js/angular.min.js:81:90)
at p (http://localhost:3000/lib/js/angular.min.js:66:341)
at g (http://localhost:3000/lib/js/angular.min.js:58:481)
at http://localhost:3000/lib/js/angular.min.js:58:119
at http://localhost:3000/lib/js/angular.min.js:63:39
at d (http://localhost:3000/lib/js/angular.min.js:59:474) <div ng-view="" class="ng-scope" data-ng-animate="1">

And Call stack is when I paused on exception in Google Chrome.

"Error: Failed to execute 'matches' on 'Element': ':visible' is not a valid selector.

↵ at Function.gb.matchesSelector (http://localhost:3000/lib/js/jquery-1.11.2.min.js:2:12236)↵ at Function.m.filter (http://localhost:3000/lib/js/jquery-1.11.2.min.js:2:23357)↵ at w (http://localhost:3000/lib/js/jquery-1.11.2.min.js:2:23168)↵ at m.fn.init.is (http://localhost:3000/lib/js/jquery-1.11.2.min.js:2:23894)↵ at e.(anonymous function).(anonymous function). (http://localhost:3000/lib/js/jquery-ui.min.js:9:18176)↵ at i (http://localhost:3000/lib/js/jquery-ui.min.js:6:12380)"

Package.JSON

    {
  "name": "hcphes_web_app",
  "version": "2.2.1",
  "description": "HCPHES Web App",
  "main": "server.js",
  "dependencies": {
    "applicationinsights": "~0.15.2",
    "async": "~0.9.0",
    "azure-storage": "~0.4.5",
    "body-parser": "~1.12.2",
    "chart.js": "^2.3.0",
    "express": "~4.12.3",
    "mongodb": "2.2.27",
    "nodemailer": "~0.7.1",
    "sendgrid": "~1.6.1"
  },
  "devDependencies": {},
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "node server.js"
  },
18
  • 2
    looks like you have "continue" statement in some inapropriate place, try find it inside the application code and place here Commented Jun 8, 2017 at 12:56
  • Also provide what version of Angular you're using. Commented Jun 8, 2017 at 12:56
  • @tiblu how can I get version of angular ? Commented Jun 8, 2017 at 12:58
  • @happyZZR1400 I dont think so. this application was live for 2 years. Code is fine. but maybe conflict in versions ? how can I know angular version ? Commented Jun 8, 2017 at 12:59
  • 1
    run "angular.version" inside console panel Commented Jun 8, 2017 at 13:01

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.