Following the indications found here: Jquery dialog dialog is not a function
I imported and used jQuery in my Electron-React-Typescript-Webpack app as follows:
import jQuery from 'jquery';
let jj = jQuery.noConflict();
jj(document).ready(function () {
jj('#new-contact').click(function (ev) {
jj('#contact_dialog').dialog('open');
});
});
but still I get the error: TypeError: jj(...).dialog is not a function
- @types/jquery: ^3.5.5
- @types/jqueryui: 1.12.15
- jquery: ^3.6.0
- node: v14.17.0
- webpack: ^5.23.0
How to solve the problem?