bsteinrock.dev free asked 3 years ago


*Expected behavior*I just purchased and installed MDB5 pro, I simply copied a sample modal, one from a design block and one from the documentation, not even a pro component. I run the project, press the button and nothing. The documentation says you need to install any bootstrap files other than what is included in the MDB5 download files. Is there somthing I'm missing? i even tried in the included html file with all files already linked and nothing. Do i need to link files directly from the src file included? so for example for scripts: where i have all MDB5 files under a folder called MDB5 in the wwroot.

<script src="~/MDB5/src/js/bootstrap/dist/modal.js"></script>
<script src="~/MDB5/js/mdb.min.js"></script>

And stylesheets:

<link rel="stylesheet" href="~/MDB5/css/mdb.min.css" />
<link rel="stylesheet" href="~/css/site.css" />

*Actual behavior*When I run my dev tools I have this error. this is the only error i am getting.mdb.min.js:870 Uncaught SyntaxError: Invalid or unexpected token

*Resources (screenshots, code snippets etc.)*Is there something I'm missing with this?


bsteinrock.dev free commented 3 years ago

I figured it out.


Michal Szymanski staff answered 3 years ago


After downloading and unpacking MDB 5 everything should work out of the box - just copy and paste any component from the documentation. You don't need to change anything in the files or links.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: -
  • Device: Laptop
  • Browser: Chroe
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No