Topic: "t is undefined" when trying to implement a lightbox

Zvezdakoski pro asked 4 years ago


Expected behavior

to open lightbox

Actual behavior

it shows "TypeError: t is undefined"

Resources (screenshots, code snippets etc.) I tried to implement lightbox into my project, however i get this error. Thought to go to your snippets editor, download the most basic demo and modify the code, but i also get this error on your code...

if i run this in your online editor it works fine: https://mdbootstrap.com/snippets/jquery/zdraveski/1013963

If i download it and extract it into my local webserver i get the error. here is the screenshot: https://i.imgur.com/iTDOLqh.jpg

Seems you resolved this issue before, so I hope you will be able to help me: https://mdbootstrap.com/support/jquery/typeerror-t-is-undefined/

thanks in advance


MDBootstrap staff answered 4 years ago


Hi Zdraveski,

it appears that you may have a problem with mdb package initialization. When your example is working in our online editor it means that the component works fine but there is a problem with the environment you are trying to use it in. Can you show me how are created your references in the project? I see that you are using MDB Version 4.5.7. You can update our package and maybe after this simple procedure, your problem may disappear.

Best Regards, Piotr



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: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.7
  • Device: desktop pc
  • Browser: firefox, chrome
  • OS: Win10 pro
  • Provided sample code: No
  • Provided link: Yes
Tags