Error about dataTables

Error about dataTables

AurelienvcntAurelienvcnt Posts: 3Questions: 1Answers: 0

Error messages shown:
dataTables.bootstrap4.mjs:29 Uncaught TypeError: Cannot read properties of undefined (reading 'classes')

Description of problem:
I am working in a company. They have an intern application using Symfony/WebPack/Datatable and others frameworks to run.
They have installed on my PC the projet with all the dependencies. But i'm actually getting this error on my computer only. Do someone have an idea on how to fix that ?
Thanks

Answers

  • AurelienvcntAurelienvcnt Posts: 3Questions: 1Answers: 0

    The entire error :
    dataTables.bootstrap4.mjs:29 Uncaught TypeError: Cannot read properties of undefined (reading 'classes')
    at ./node_modules/datatables.net-bs4/js/dataTables.bootstrap4.mjs (dataTables.bootstrap4.mjs:29:20)
    at webpack_require (bootstrap:79:1)
    at Object.<anonymous> (dashboard.js:2:1)
    at ./assets/js/Component/dashboard/dashboard.js (dashboard.js:200:30)
    at webpack_require (bootstrap:79:1)
    at checkDeferredModules (bootstrap:45:1)
    at Array.webpackJsonpCallback [as push] (bootstrap:32:1)
    at dashboard.js:1:57
    .

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    Sounds like it might not have included the dependency datatables.net. We'd need a way to reproduce this error to be able to help debug it though. If you could create a repo with a minimally reproducible example showing the error I can help to debug it.

    Allan

  • AurelienvcntAurelienvcnt Posts: 3Questions: 1Answers: 0

    I've seen the problems with mates, it's from the webpack cofnig we are working on it thanks

Sign In or Register to comment.