Topic: Can't find module 'hammerjs' using Laravel-mix
newtongamajr pro asked 7 years ago
I'm using Laravel-mix as my asset pipeline, but this error is happening:
ERROR in ./resources/assets/MDB-Pro/js/mdb.js
Module not found: Error: Can't resolve 'hammerjs' in '/home/newton/php/Vehiculum/resources/assets/MDB-Pro/js'
@ ./resources/assets/MDB-Pro/js/mdb.js 2535:302-339
@ ./resources/assets/js/app.js
@ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss
ERROR in ./resources/assets/MDB-Pro/js/modules/jquery.hammer.js
Module not found: Error: Can't resolve 'hammerjs' in '/home/newton/php/Vehiculum/resources/assets/MDB-Pro/js/modules'
@ ./resources/assets/MDB-Pro/js/modules/jquery.hammer.js 5:8-47
@ ./resources/assets/js/app.js
@ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss
I'm requiring the following modules to built my assets:
require('./bootstrap'); require('../../../node_modules/jquery/dist/jquery'); require('../MDB-Pro/js/popper.min'); require('../MDB-Pro/js/modules/hammer'); require('../MDB-Pro/js/modules/jquery.hammer'); require('../MDB-Pro/js/mdb');
Add comment
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Open
Specification of the issue
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No