ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: groupXS on December 24, 2024, 02:39:36 pm

Title: Module name "jquery-ui-pack" has not been loaded
Post by: groupXS on December 24, 2024, 02:39:36 pm
Hi,

I had v6 of param query and recently bought v10 and wanted to upgrade but now I am getting error
Uncaught Error: Module name "jquery-ui-pack" has not been loaded yet for context: _. Use require([])

My project loaded libraries via required js
        'jquery': '../lib/jquery/jquery-3.3.1.min',
        'jquery-ui': '../lib/jqueryui-1.12.1/js/jquery-ui.min',
        'pqgrid': '../lib/paramquery/pqgrid.min',

This used to work on v6. How to make it work with v10
Thanx
Title: Re: Module name "jquery-ui-pack" has not been loaded
Post by: groupXS on December 24, 2024, 03:17:32 pm
I have to remove / change this line since my project is using require js
"function" == typeof require ? (jQuery = require("jquery-ui-pack"), pq = {}, JSZip = require("jszip"), module.exports = pq)
Title: Re: Module name "jquery-ui-pack" has not been loaded
Post by: paramvir on December 27, 2024, 08:39:58 pm
jquery-ui-pack can be added from npm

https://www.npmjs.com/package/jquery-ui-pack

npm i jquery-ui-pack