Topic: HammerJS Not Resolving with Webpack

blzalewski pro asked 6 years ago


Hey, I'm having trouble loading HammerJS when I include mdb.min.js into my Roots Sage Webpack project. I get the following error: ERROR in ./scripts/lib/mdb.min.js Module not found: Error: Can't resolve 'hammerjs' in 'C:UsersxxxTBSxxxresourcesassetsscriptslib' @ ./scripts/lib/mdb.min.js 53:7209-7240 @ ./scripts/main.js @ multi ./scripts/main.js ./styles/main.scss How can I resolve this error? Here's how I'm importing the JS libraries: import 'jquery'; import './lib/tether.min'; import 'bootstrap'; import './lib/mdb.min';

Mirosław Stasiak free answered 6 years ago


Hey, Add HammerJS locally to your project and then update your JS libraries list. Let me know if the problem was solved Regards,

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags