Widget Dependency UI script throwing 'error: Unknown provider' when launches the Portal.

Indira Priya Da
Tera Guru

Hello Team, 

Recently we upgraded to Newyork Version from London and when Launching the service Portal, empty page loads only with header. Console of the browser after loading the page shows the below error on custom UI script.
Error: [$injector:unpr] Unknown provider: $elementProvider <- $element

Please suggest what is causing the error in below UI script code:


find_real_file.png Your assistance is much appreciated.

 

Thanks & Regards,

Indira Priya Darsini M,

1 ACCEPTED SOLUTION

Indira Priya Da
Tera Guru

Hello,

spNotificationsDirective controller function updated in Newyork with additional $element parameter. Hence the custom script throwing the error.

controller: function($scope, $element) {

Updated the custom script to sync with the new controller function as highlighted below.


find_real_file.png


Now the service portal launches without any error.

Thanks & Regards,
Indira Priya Darsini M.

 

View solution in original post

2 REPLIES 2

Omkar Mone
Mega Sage

Hi 

Please go through the below link if that helps : -

 

https://community.servicenow.com/community?id=community_question&sys_id=a45643e1db1cdbc01dcaf3231f96...

 

Regards,

Omkar Mone.

www.dxsherpa.com

Indira Priya Da
Tera Guru

Hello,

spNotificationsDirective controller function updated in Newyork with additional $element parameter. Hence the custom script throwing the error.

controller: function($scope, $element) {

Updated the custom script to sync with the new controller function as highlighted below.


find_real_file.png


Now the service portal launches without any error.

Thanks & Regards,
Indira Priya Darsini M.