Author Topic: Module name "jquery-ui-pack" has not been loaded  (Read 1621 times)

groupXS

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 11
    • View Profile
Module name "jquery-ui-pack" has not been loaded
« 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

groupXS

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Module name "jquery-ui-pack" has not been loaded
« Reply #1 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)

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6344
    • View Profile
Re: Module name "jquery-ui-pack" has not been loaded
« Reply #2 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