-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
VUE - jquery.ui was not found #1709
Comments
Same here |
Which version? and how do u added it to your project? |
I am using Vue CLI |
nvm, with following code it works also with latest version import "gridstack/dist/gridstack.min.css";
import GridStack from "gridstack/dist/gridstack-jq.js"; |
Weird i only get this error |
Update: I was in the wrong mood last night when I saw this. I see the doc (which I pasted below) mentions this... never mind, I'll take a look. Also there are Vue 3 examples if you didn't see them. |
I actually have this issue even tho i did it like in the documentation
|
We all have those kind of days no worries :) Yes i saw the Vue3 Examples in Javascript The only problem is that we cant import the Typescript Gridstack lib because of the mentioned error note1: I deleted my previous answeres to keep it clean! |
@Justin99b Also could you guys post a reproduceable folder for me to test ? my Angular app uses h5 (which as you mention works) and not sure it would compile the same way (can't recall if I tried the JQ or not). |
* export symbols .d.ts for `gridstack-h5.js | gridstack-jq.js | gridstack-static.js` * renamed the index.* files so we get proper .d.ts files * part of gridstack#1709
I Actually need it yes Im using Gridstack for an Inventory system for FIveM (GTA V Multiplayer) And They use CEF (Chromium Embedded Framework) which does not support HTML5 Drag & Drop Therefore its pretty important to use the JQ Variant |
I'm finding the html5 drag&drop less than idea, especially implemented quite differently on mac Safari... so I've been starting a new mouse only (and mobile pointer which is same) events instead. But that still a lot of work left. |
Here is an example Quickly created with vue cli I did not add a working gridstack but its enough to reproduce 1 |
* fix gridstack#1709 also fix gridstack#1306 I believe. * correct info in Readme for using JQ version and ES6 (tested in Angular app) * changed .ts to include jquery by name instead of location.
the doc include has been updated with info and I have verified that it works on my angular app (v4 and V3) with webpack include directives. alias: {
'jquery': 'gridstack/dist/jq/jquery.js',
'jquery-ui': 'gridstack/dist/jq/jquery-ui.js',
'jquery.ui': 'gridstack/dist/jq/jquery-ui.js',
'jquery.ui.touch-punch': 'gridstack/dist/jq/jquery.ui.touch-punch.js',
}, don't forget to contribute if you find this lib useful! |
Subject of the issue
Hi all, I am trying to import "gridstack-dd-jqueryui" into my vue project as described in the readme, but I always get the error message that "jquery.ui" could not be found. What am I doing wrong?
Note:
With
gridstack-dd-native
everything works, but i need the mobile touch support.Your environment
OS: macOS v10.15.7
Gridstack version: v4.0.3
Browser: Google Chrome v89.0.4389.90
vue: v2.6.11
Steps to reproduce
Expected behavior
Should find jquery.ui
Actual behavior
The text was updated successfully, but these errors were encountered: