javascript - Bootstrap Touch Carousel with Webpack -
i in process of moving legacy webapp on run on sort of frontend dependancy manager. in instance im using webpack , npm.
i have been able migrate 90% of app over, stuck on issue bootstrap-touch-carousel.
it seems though have installed via npm, still not able call via normal require(./bootstrap-touch-carousel).
are dependencies need required differently? or on wrong track?
you cannot import require('bootstrap-touch-carousel')
because in module package.json there isn't main file
you must explicitly import distributed .js file doing this:
require('bootstrap-touch-carousel/dist/js/bootstrap-touch-carousel')
Comments
Post a Comment