HubSpot/drop

Uncaught ReferenceError: Drop is not defined

Opened this issue · 0 comments

Thanks for the library. I have tried everything, but this library is so poor documented:
Install:
npm install tether-drop

Import JS libs (all of them):

require('../../node_modules/tether/dist/js/tether.min'); require('../../node_modules/tether-drop/dist/js/drop.min'); require('../third_party/drop-master/dist/js/drop');

Then use the example:

let dropInstance = new Drop({ target: document.querySelector('.drop-target'), content: 'Welcome to the future', classes: 'drop-theme-arrows', position: 'bottom left', openOn: 'click' })

, but I am getting an error:

Uncaught ReferenceError: Drop is not defined

I don't know why just don't put simple example, how it works, how to install, properties/methods , what to include, like every other library. This is all what people wants.
I have no problem with other libraries.

I am using Elixir with GULP - Laravel. Everything is compiled and imported. What I am missing ?