New to WP. Installed on my theme directory jQuery Masonry using npm from https://www.npmjs.com/package/masonry-layout Please help me?

Uncaught TypeError: jquery__WEBPACK_IMPORTED_MODULE_0___default(…)(…).masonry is not a function at Module../src/assets/js/bundle.js (bundle.js:23) at webpack_require (bootstrap:19) at Object.0 (bundle.js?ver=1.0.0:5292) at webpack_require (bootstrap:19) at…