javascript - jQuery UI with RequireJS v.1.11.1 - script error -


i following guide: https://github.com/jquery/learn.jquery.com/blob/master/page/jquery-ui/environments/amd.md

and trying require jquery-ui/sortable , jquery-ui/draggable, fails, saying:

uncaught error: script error for: lib/jquery-ui/draggable

this folder structure:

image

this how load it:

define(['jquery', 'lib/jquery-ui/draggable', 'lib/jquery-ui/sortable'], function($) {

what doing wrong?

also surprises me there no such file, "sortable", in jquery-ui - documentation tells me way. using v1.11.1

found out package available download official place: contacted version.

it wasn't pretty easy find library looking for, found @ github:


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -