Skip to content

jquery-ui widget directory? #571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
eegzapp opened this issue Dec 14, 2016 · 3 comments
Closed

jquery-ui widget directory? #571

eegzapp opened this issue Dec 14, 2016 · 3 comments

Comments

@eegzapp
Copy link

eegzapp commented Dec 14, 2016

gridstack appears to be looking for jquery-ui to have a 'widget' directory which it doesn't.

I'm getting a number of messages that look like this (using Aurelia):

{ uid: 1,
  name: '<series>',
  branch: true,
  error:
   { [Error: ENOENT: no such file or directory, open 'G:\MY_DATA\aurelia-d3\node_modules\jquery-ui\ui\widget\data.js']
     errno: -4058,
     code: 'ENOENT',
     syscall: 'open',
     path: 'G:\\MY_DATA\\aurelia-d3\\node_modules\\jquery-ui\\ui\\widget\\data.js',
     moduleTree: [ 'gridstack/gridstack' ],
     fileName: 'G:/MY_DATA/aurelia-d3/node_modules/gridstack/dist/gridstack.js' },
  duration: [ 2, 271964388 ],
  time: 1481756814746 }

jquery-ui heirarchy in the ui folder:

core.js                
data.js                
disable-selection.js   
effect.js              
effects/               
escape-selector.js     
focusable.js           
form.js                
form-reset-mixin.js    
i18n/                  
ie.js                  
jquery-1-7.js          
keycode.js             
labels.js              
plugin.js              
position.js            
safe-active-element.js 
safe-blur.js           
scroll-parent.js       
tabbable.js            
unique-id.js           
version.js             
widget.js              
widgets/

If I copy all the .js and the widgets directory from the top level of the jquery-ui module into a widget folder, then everything works.

@eegzapp
Copy link
Author

eegzapp commented Dec 14, 2016

Found this after posting: #513

Will look into how to do this in Aurelia and get back.

@eegzapp
Copy link
Author

eegzapp commented Dec 14, 2016

Was able to make it work by adding the following to aurelia.json (after doing requisite npm installs):

"jquery",
{
  "name": "jquery-ui",
  "path": "../node_modules/jquery-ui/ui",
  "main": "widget"
},
"lodash",
{
  "name": "gridstack",
  "path": "../node_modules/gridstack/dist",
  "main": "gridstack",
  "deps": [
      "jquery",
      "jquery-ui",
      "lodash"
  ],
  "resources": [
      "gridstack.css"
  ]          
}

@radiolips
Copy link
Member

Thanks, eegzapp! Should help people if they're also using Aurelia. Hopefully we won't have dependencies for much longer :). I'm closing, but feel free to open a new ticket if you're having any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants