Member-only story

Uncaught TypeError: $(…).DataTable is not a function at HTMLDocument

How do I solve the DataTable Laravel problem in 03 days?

Hi I’m Mahe Newbie Laravel Developer. Recently I Try To Implement DataTable Plugin In My Own Laravel Project. But Unsuccessful.

I asked my team mate — senior coder — teacher — google — stack overflow everything. And Almost tried 50+ times but result is 0.

Showing The Error In Browser Console

Then I recheck my file structure. Everything was Ok! But DataTable Showing me The F****k problem.

It’s the file hiearchy in my app.blade.php.

I just add extra 2 file.

  1. jQuery
  2. jQuery UI

But Result is also 0.

then i just add “defer” in my dataTable Its Working fine.

Or Just do

defer just give the file priority load jquery multiple time. thats why its gives us Uncaught TypeError: $(…).DataTable is not a function at HTMLDocument

Final Result

*** Disclaimer: DataTable is Not Fixed. It could be happened with others jquery plugin also.

Thank You,

Mahe Karim

--

--

Mahe Karim - Building MVP & SAAS For You 📣
Mahe Karim - Building MVP & SAAS For You 📣

Written by Mahe Karim - Building MVP & SAAS For You 📣

Software Engineer | Photographer | Coffee Reviewer | Husband | Running Boutique Agency, Building SaaS - Writing Regularly On Medium. Mail me mahekarim@gmail.com

Responses (5)

Write a response