lifegadget / ui-slider

A visually attractive slider for ambitious Ember apps
https://ui-slider.firebaseapp.com/
MIT License
30 stars 39 forks source link

Fastboot compatible #43

Open ehubbell opened 5 years ago

ehubbell commented 5 years ago

This component doesn't appear to be fastboot compatible. Likely due to it's dependency on Jquery.

/Users/erichubbell/Sites/myhub/myhub-web/tmp/broccoli_merge_trees-output_path-X5cNchsw.tmp/assets/vendor.js:150897
            var namespace = $.fn.slider ? 'bootstrapSlider' : 'slider';
                                 ^

TypeError: Cannot read property 'slider' of undefined
    at /Users/erichubbell/Sites/myhub/myhub-web/tmp/broccoli_merge_trees-output_path-X5cNchsw.tmp/assets/bower_components/seiyria-bootstrap-slider/dist/bootstrap-slider.js:1559:1
    at /Users/erichubbell/Sites/myhub/myhub-web/tmp/broccoli_merge_trees-output_path-X5cNchsw.tmp/assets/bower_components/seiyria-bootstrap-slider/dist/bootstrap-slider.js:1562:1
    at /Users/erichubbell/Sites/myhub/myhub-web/tmp/broccoli_merge_trees-output_path-X5cNchsw.tmp/assets/bower_components/seiyria-bootstrap-slider/dist/bootstrap-slider.js:50:1
    at /Users/erichubbell/Sites/myhub/myhub-web/tmp/broccoli_merge_trees-output_path-X5cNchsw.tmp/assets/bower_components/seiyria-bootstrap-slider/dist/bootstrap-slider.js:54:1
    at ContextifyScript.Script.runInContext (vm.js:59:29)
    at VMSandbox.eval (/Users/erichubbell/Sites/myhub/myhub-web/node_modules/fastboot/src/vm-sandbox.js:14:16)
    at /Users/erichubbell/Sites/myhub/myhub-web/node_modules/fastboot/src/ember-app.js:156:15
    at Array.forEach (<anonymous>)
    at EmberApp.loadAppFiles (/Users/erichubbell/Sites/myhub/myhub-web/node_modules/fastboot/src/ember-app.js:153:21)
    at EmberApp.retrieveSandboxedApp (/Users/erichubbell/Sites/myhub/myhub-web/node_modules/fastboot/src/ember-app.js:201:10)
    at new EmberApp (/Users/erichubbell/Sites/myhub/myhub-web/node_modules/fastboot/src/ember-app.js:59:21)
    at FastBoot._buildEmberApp (/Users/erichubbell/Sites/myhub/myhub-web/node_modules/fastboot/src/index.js:114:17)
    at new FastBoot (/Users/erichubbell/Sites/myhub/myhub-web/node_modules/fastboot/src/index.js:52:10)
    at app.use (/Users/erichubbell/Sites/myhub/myhub-web/node_modules/ember-cli-fastboot/index.js:318:29)
    at Layer.handle [as handle_request] (/Users/erichubbell/Sites/myhub/myhub-web/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/Users/erichubbell/Sites/myhub/myhub-web/node_modules/express/lib/router/index.js:317:13)
    at /Users/erichubbell/Sites/myhub/myhub-web/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/Users/erichubbell/Sites/myhub/myhub-web/node_modules/express/lib/router/index.js:335:12)
    at next (/Users/erichubbell/Sites/myhub/myhub-web/node_modules/express/lib/router/index.js:275:10)
    at err (/Users/erichubbell/Sites/myhub/myhub-web/node_modules/ember-cli/lib/tasks/server/middleware/broccoli-watcher/index.js:54:11)
    at watcher.then (/Users/erichubbell/Sites/myhub/myhub-web/node_modules/broccoli-middleware/lib/watcher-middleware.js:35:7)
    at tryCatcher (/Users/erichubbell/Sites/myhub/myhub-web/node_modules/ember-cli/node_modules/rsvp/dist/lib/rsvp/-internal.js:39:19)
    at invokeCallback (/Users/erichubbell/Sites/myhub/myhub-web/node_modules/ember-cli/node_modules/rsvp/dist/lib/rsvp/-internal.js:211:31)
    at /Users/erichubbell/Sites/myhub/myhub-web/node_modules/ember-cli/node_modules/rsvp/dist/lib/rsvp/then.js:26:14
    at flush (/Users/erichubbell/Sites/myhub/myhub-web/node_modules/ember-cli/node_modules/rsvp/dist/lib/rsvp/asap.js:80:5)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)