New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with webpack #1319
Comments
I have no idea what you're talking about. |
Hi, look, I met the same problem. That's what he tried to say. He tried to import your plugin via require, but he gets empty object, when he did. So he asks you to add module.exports Regards! |
I don't know anything about require or webpacks. You're welcome to put in a pull request |
Well, I did pull-request which solves this problem. Hope you'll accept it ASAP. |
@alxrm Could you link to the PR or state if it is already merged? |
@alxrm Thanks. It looks like it wasn't merged but rejected. |
I ran into the same problem, and managed to solve/(hack around) it as follow:
|
I ran into the same problem too. Datetimepicker tries to load its own jQuery.
|
@aburkut Thank you. I've been pulling my hair out for about 24 hours and that little alias fixes everything. My webpack.config.js: var path = require('path');
module.exports = {
resolve: {
alias: {
// Force all modules to use the same jquery version.
'jquery': path.join(__dirname, 'node_modules/jquery/src/jquery')
}
}
}; |
Man, I've been looking for this solution for the past few hours. None of the plugins (datetimepicker, popover, tooltips) wanted to work and I always got a THANK YOU @aburkut |
Is there an example on usage of this plugin with webpack? |
@kebian If I could like your post 1000+ times, I would've done so! |
I try =>
import BootstrapDateTimePicker from "eonasdan-bootstrap-datetimepicker"; and console.log(BootstrapDateTimePicker);
And console.log return me empty object.
I try =>
import from "eonasdan-bootstrap-datetimepicker";
But i have Uncaught TypeError: $(".picker").datetimepicker is not a function
Please add module.exports = $.fn.datetimepicker;
to 2551 line
The text was updated successfully, but these errors were encountered: