Skip to content

Instantly share code, notes, and snippets.

@Theodory
Last active March 30, 2021 08:01
Show Gist options
  • Save Theodory/0c5afa54c20e4f4927c9477eed5ca7fe to your computer and use it in GitHub Desktop.
Save Theodory/0c5afa54c20e4f4927c9477eed5ca7fe to your computer and use it in GitHub Desktop.
Caught Type: exception datetimepicker()........ is not a function

To resolve eonasdan-bootstrap-datetimepicker with exception Caught Type: exception datetimepicker()........ is not a function. Bootstrap-datetimepicker is trying to use it's own jquery force it to use same version of jquery used by other node_modules, inside your webpack configurations file add this.

.webpackConfig({
        resolve: {
            alias: {
                 // Force all modules to use the same jquery version.
            'jquery': path.join(__dirname, 'node_modules/jquery/src/jquery')
            }
        }
    });


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment