You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using jQuery UI, I wish to import UI widgets and be able to use the.
This app that I'm creating is not using any framework, I am coding in TypeScript but that shouldn't make a difference I guess.
I have another app using angular-cli (WebPack) and I can import jQuery and the widgets just fine:
Then I am inporting that, and the widget and all dependencies manually.
Seems the widget I wanted to use requires ul/mouse.js, see jQueryUI download builder - I check the widget I need and it's dependencies;
This is really trial and error though. And I haven't got draggable or droppable. Despite importing everything:
(Open up ui/widgets/draggable.js and there is a AMD define):
An update to say that I have found a work around, I noticed that the SO question was using jquery-ui-dist, which is actually a package, I installed that and am using it.
It is not ideal but it works.
I am using jQuery UI, I wish to import UI widgets and be able to use the.
This app that I'm creating is not using any framework, I am coding in TypeScript but that shouldn't make a difference I guess.
I have another app using
angular-cli
(WebPack) and I can import jQuery and the widgets just fine:But when I do the same using Parcel, it just fails, no error in the console
jQueryUI is essential for my app that I am creating, if this cannot be resolve I will have to move to WebPack.
🐛 bug report
Like I sad there are no errors.
If I breakpoint in the
parcelRequire
method I can see the widgets in themodules
parameter:(copied from debugger tooltip)
It is not loading correctly, I would expect more dependencies.
🎛 Configuration
I don't have a
index.html
, everything is TypeScript:(scripts in package.json)
🤔 Expected Behavior
I would expect it to work like WebPack, just import them and go:
I would also expect an error in the console.
😯 Current Behavior
Not doing that at all.
💁 Possible Solution
I have seen #333 and How do I use jQuery and jQuery-ui with Parcel (bundler)? on SO
I have been experimenting and I have got it working in a way, but still not as I would expect.
I have a
ImportJQuery.ts
:Then I am inporting that, and the widget and all dependencies manually.
Seems the widget I wanted to use requires
ul/mouse.js
, see jQueryUI download builder - I check the widget I need and it's dependencies;This is really trial and error though. And I haven't got draggable or droppable. Despite importing everything:
(Open up
ui/widgets/draggable.js
and there is a AMD define):🌍 Your Environment
The text was updated successfully, but these errors were encountered: