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

mdb 4.8.1 + webpack issues #236

Closed
Dizzzlectic opened this issue May 14, 2019 · 1 comment
Closed

mdb 4.8.1 + webpack issues #236

Dizzzlectic opened this issue May 14, 2019 · 1 comment

Comments

@Dizzzlectic
Copy link

Expected behavior

Custom File Input doesnt work. Error printed into developer console.

Actual behavior

Custom File Input to work without errors being printed to console.

Your working environment and MDB version information

Latest git of MDB free + Webpack 4.31.0

Resources (screenshots, code snippets etc.)

Added a test environment with readme on github
https://github.com/SpellCraft/mdb-webpack-test
https://i.imgur.com/Gfld3tO.png

I can't see any other issues with MDB free for the moment

For every question of technical nature, in order to get the most detailed answer as soon as possible, ask on our dedicated Support Forum

@pglejzer
Copy link
Contributor

Hi,
we are very sorry about that bug, I thought we fix this but no.. You have to find in mdb.js ( or in picker-date.js) :

  // AMD.
  if (typeof define == 'function' && define.amd)
    define(['./picker', 'jquery'], factory)

and change it to :

  // AMD.
  if (typeof define == 'function' && define.amd)
    define(['picker', 'jquery'], factory)

https://ibb.co/N1CmCLF

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

3 participants