LinkedDataFragments / jQuery-Widget.js

[DEPRECATED] A jQuery widget to query Triple Pattern Fragments interfaces
http://client.linkeddatafragments.org/
MIT License
35 stars 10 forks source link

Uncaught ReferenceError: ldf is not defined #5

Closed m1ci closed 9 years ago

m1ci commented 9 years ago

Tried to deploy the client on Apache but I get

Uncaught ReferenceError: ldf is not defined at ldf-client-jquery.js:92

Tested in Chrome. Any tips why this error occurs? You can try it here: http://rv2622.1blu.de/ldf-client/jQuery-Widget.js/index.html

RubenVerborgh commented 9 years ago

Yes, http://rv2622.1blu.de/ldf-client/jQuery-Widget.js/deps/ldf-client-browser.js seems to be empty. Did you generate the file? (Happens automatically with npm install.)

m1ci commented 9 years ago

I did npm install. I also tried npm install --unsafe-perm and I get

npm WARN package.json @ No repository field.

> @ postinstall /home/milan/jQuery-Widget.js
> browserify node_modules/ldf-client/browser.js -u stream -o deps/ldf-client-browser.js
./queries-to-json

Error: Cannot find module '/home/milan/jQuery-Widget.js/node_modules/ldf-client/browser.js' from '/home/milan/jQuery-Widget.js'
    at /home/milan/jQuery-Widget.js/node_modules/browserify/node_modules/resolve/lib/async.js:55:21
    at load (/home/milan/jQuery-Widget.js/node_modules/browserify/node_modules/resolve/lib/async.js:69:43)
    at onex (/home/milan/jQuery-Widget.js/node_modules/browserify/node_modules/resolve/lib/async.js:92:31)
    at /home/milan/jQuery-Widget.js/node_modules/browserify/node_modules/resolve/lib/async.js:22:47
    at Object.oncomplete (fs.js:107:15)

Should I have browserify installed?

RubenVerborgh commented 9 years ago

npm install should install browserify for you. Did that go wrong?

m1ci commented 9 years ago

I tried once more npm install and again I get:

> @ postinstall /home/milan/jQuery-Widget.js
> browserify node_modules/ldf-client/browser.js -u stream -o deps/ldf-client-browser.js
./queries-to-json

Error: Cannot find module '/home/milan/jQuery-Widget.js/node_modules/ldf-client/browser.js' from '/home/milan/jQuery-Widget.js'
    at /home/milan/jQuery-Widget.js/node_modules/browserify/node_modules/resolve/lib/async.js:55:21
    at load (/home/milan/jQuery-Widget.js/node_modules/browserify/node_modules/resolve/lib/async.js:69:43)
    at onex (/home/milan/jQuery-Widget.js/node_modules/browserify/node_modules/resolve/lib/async.js:92:31)
    at /home/milan/jQuery-Widget.js/node_modules/browserify/node_modules/resolve/lib/async.js:22:47
    at Object.oncomplete (fs.js:107:15)
RubenVerborgh commented 9 years ago

Ah of course, this was changed recently. Will release a new ldf-client version, just a sec.

RubenVerborgh commented 9 years ago

ldf-client v1.3.1 includes browser.js. I've updated this repo in order to require 1.3.1.

m1ci commented 9 years ago

works! thanks a lot for the super fast update!