In the past I've added:
"eonasdan-bootstrap-datetimepicker": "^4.17.47",
to my package.json and it seems to work in Laravel 5.2 I must admit I've not added ti to a 5.4 project yet.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I need to include bootstrap-datetimepicker into my Mix setup. https://github.com/Eonasdan/bootstrap-datetimepicker
The bootstrap-datetimepicker package does not offer Node.js installer. How can I include it in my project?
Here is what I tried,
I added a folder resources/assets/vendors and manually download the https://github.com/Eonasdan/bootstrap-datetimepicker in to it.
Then in my resources/assets/app.sass the following line
@import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";
But i am getting the following error when compiling the assets using npm run watch
Module build failed: ModuleNotFoundError: Module not found: Error: Can't resolve
'./resources/assets/vendors/bootstrap-datetimepicker-4.17.47/build/css/bootstra
p-datetimepicker.css' in 'resources\assets\sass' at factoryCallback (node_modules\webpack\lib\Compilation.js:260:39)
I am also unsure on how to require the package in my project... but I tried adding the following line in `resources/assets/js/app.js``. Is this the right way to include it?
require('../vendors/bootstrap-datetimepicker-4.17.47/build/js/bootstrap-datetimepicker.min.js');
Please or to participate in this conversation.