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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -