Skip to content
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

Uncaught ReferenceError: bsCustomFileInput is not defined #245

Open
Haves1001 opened this issue Jun 8, 2019 · 2 comments
Open

Uncaught ReferenceError: bsCustomFileInput is not defined #245

Haves1001 opened this issue Jun 8, 2019 · 2 comments

Comments

@Haves1001
Copy link

Expected behavior

No error is thrown.

Actual behavior

mdb.js:15919 Uncaught ReferenceError: bsCustomFileInput is not defined
at HTMLDocument.eval (mdb.js:15919)

Your working environment and MDB version information

mdbootstrap 4.8.2 included via npm and webpack.

@Haves1001
Copy link
Author

@MichaelBelgium
Copy link

MichaelBelgium commented Jul 16, 2019

I temporary fixed it by doing

window.bsCustomFileInput = require('mdbootstrap/js/modules/bs-custom-file-input');
//before loading mdb js
require('mdbootstrap/js/mdb');

Also duplicates #236

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants