Closed kaspar-allenbach closed 8 years ago
IScroll = require('iscroll');
example http://git.blivesta.com/drawer/package-managers/ https://github.com/blivesta/drawer-docs/blob/master/src/js/drawer-docs.js#L1
Do I get it right that it's unusable without Webpack or Browserify? I use neither or them.
I install jquery, iscroll and drawer via npm and getting the IScroll is not defined
error.
I can't get it to work when I use npm.
I tried every way possible but there is always:
I imported the plugin like this:
or like this:
or like this (according to your docs):
The outcome is always the same: `Uncaught ReferenceError: IScroll is not defined``
In the compiled build both drawer and iscroll are defined.
So I don't see why iscroll isn't recognized.