-
-
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
Gridstack movement/resize doesn't work in Electron #875
Comments
Hey, @StefanM98 . I don't have experience with Electron. Have you tried making the changes that ZoolWay put into the ticket you referenced? |
Hey, @radiolips . I'm trying to implement said changes now. It's not exactly the same solution due to the fact that |
I've fiddled around with my webpack config with no luck so far. @radiolips do you, or any other members of this community, have any experience with webpack and how to get it to work with gridstack? Essentially, I'm not very experienced with webpack so I'm struggling to figure this out. Any help would be greatly appreciated. |
So I haven't quite figured out how to fix this problem using webpack, but I have found a workaround that works in my case. Since Gridstack already uses jQuery, I decided to make use of
This isn't an ideal solution, but it works without stalling the entire application. I'm updating the boilerplate mentioned earlier, and closing this issue until a better solution is found. |
I'm glad you were able to figure it out, @StefanM98 , even if it's just a temporary workaround. When you do get it solved, let me know (I wish I could figure it out, but I'm really not great with the loaders), and I'll update docs or the code. |
Thanks @radiolips , will do! |
Subject of the issue
When
gridstack.jQueryUI.min.js
is imported, this error is produced:Uncaught TypeError: Cannot read property 'registerPlugin' of undefined
. This problem seems to be similar to issue #613.Your environment
Steps to reproduce
I've created a repository to exemplify this problem. It's a simple Electron boilerplate that I added jQuery, jQuery UI, Underscore, and gridstack to. Follow the "Quick Start" section to get where I am now. Then, uncomment the line
import 'gridstack/dist/gridstack.jQueryUI.js';
inapp.js
Expected behavior
gridstack.jQueryUI.min.js
should execute with no errors and provide the ability to move and resize the gridstack items.Actual behavior
When
gridstack.jQueryUI.min.js
orgridstack.all.js
is imported the error mentioned above is produced.Any help would be greatly appreciated. Thank you.
The text was updated successfully, but these errors were encountered: