We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Property 'views' does not exist on type 'JQueryStatic<HTMLElement>'

What is wrong?
JQuery is installed and configured
"types": [
"jquery",
"ej.web.all"
]

Polyfills.ts

import * as jquery from 'jquery';
window['jQuery'] = jquery;
window['$'] = jquery;

Error:
Property 'views' does not exist on type 'JQueryStatic'


3 Replies

KK Karthigeyan Krishnamurthi Syncfusion Team November 1, 2017 09:05 AM UTC

Hi Flavio,  
 
Thank you for contacting Syncfusion support. 
 
We have created an incident for your query and we request you to have a follow up with the below incident link for further update on this. 
 
Regards, 
Karthigeyan 



PD PM Developers July 15, 2019 11:07 AM UTC

Any update, how this error can be fixed? I am getting this error while working with TypeScript and Syncfusion Grid. This is my line of code

$.views.helpers({
_GroupName: this.getGroupName
});

Regards,
Jamil


MP Manivannan Padmanaban Syncfusion Team July 16, 2019 12:07 PM UTC

Hi Jamal, 

Greetings from Syncfusion Support. 

Query: Any update, how this error can be fixed? I am getting this error while working with TypeScript and Syncfusion Grid. 
 
The above reported issue will occur when jsrender is not installed. Kindly install the jsrender like jquery and ej.web.all files to overcome the issue and run the below commands to install the jsRender.  

<Code>  
<!--run the below command lines-->  
    npm install --save-dev @types/jquery  
    npm install --save-dev @types/jsrender  
    npm install --save-dev @types/ej.web.all  
 
 
Still facing the issue, please get back to us with complete code example. 
 
Regards, 
Manivannan Padmanaban. 





Loader.
Live Chat Icon For mobile
Up arrow icon