Component: Bonita | Version: 7+ | Edition: All
Question
How to cope with JavaScript stack trace in my web browser JS debugger's console after a migration?
As a developer, using the UI Designer, I am modifying the web pages for our living applications. One HTML widget is not displayed anymore since environments have been migrated.
There are two distinct stack traces, one which get generated with the production environment and another one when the newpage is loaded from the tomcat associated with the Studio.
Production environment
Error: [$injector:unpr] http://errors.angularjs.org/1.3.18/$injector/unpr?p0=modalServiceProvider%20%3C-%20modalService vendor.min.js:105 at vendor.min.js:9 at vendor.min.js:41 at Object.d [as get] (vendor.min.js:39) at vendor.min.js:41 at d (vendor.min.js:39) at Object.e [as invoke] (vendor.min.js:39) at E.instance (vendor.min.js:79) at vendor.min.js:62 at q (vendor.min.js:10) at x (vendor.min.js:62)
Development (Studio) environment
Error: [$parse:syntax] http://errors.angularjs.org/1.3.18/$parse/syntax?p0=%2F&p1=no%20a%20primar...Fbonita%2Fapps%2Fwheel-store%2Frequest%2F VM7780 vendor.min.js:105 at http://localhost:8080/bonita/portal/resource/app/wheel-store/request/content/js/vendor.min.js:9:417 at lb.throwError (http://localhost:8080/bonita/portal/resource/app/wheel-store/request/content/js/vendor.min.js:195:113) at lb.primary (http://localhost:8080/bonita/portal/resource/app/wheel-store/request/content/js/vendor.min.js:194:330) at lb.unary (http://localhost:8080/bonita/portal/resource/app/wheel-store/request/content/js/vendor.min.js:200:451) at lb.multiplicative (http://localhost:8080/bonita/portal/resource/app/wheel-store/request/content/js/vendor.min.js:201:178) at lb.additive (http://localhost:8080/bonita/portal/resource/app/wheel-store/request/content/js/vendor.min.js:201:36) at lb.relational (http://localhost:8080/bonita/portal/resource/app/wheel-store/request/content/js/vendor.min.js:200:404) at lb.equality (http://localhost:8080/bonita/portal/resource/app/wheel-store/request/content/js/vendor.min.js:200:260) at lb.logicalAND (http://localhost:8080/bonita/portal/resource/app/wheel-store/request/content/js/vendor.min.js:200:136) at lb.logicalOR (http://localhost:8080/bonita/portal/resource/app/wheel-store/request/content/js/vendor.min.js:200:6)
Answer
As a developer, it is needed to clear the cache's data of the web browser you are using.
The final users won't experience this behavior.