Error on AMD Library to DataTables I Found error on Min File

Error on AMD Library to DataTables I Found error on Min File

kromanderkromander Posts: 2Questions: 0Answers: 0

Hello this is my primier post so if there is something wrong apologize for it beforehand.
Well, now .. I'm working with a company, where a high quality software tools that we use in the free access and other things, based on JavaScript be performed, all good so far, we put the datatables to ensure component quality PivotTables that intend to use, but these components must be entered as deAMD and Its Ok, but trying to do it was suffering muucho since not work investigating, looking and found a solution erapasar Parameter as "datatables" to DataTables using the API,

 The problem was that one did not work properly following all the steps correctly and how you should do .. after long hours dealing with it, it seemed strange that the file uncompress had the conditions to ensure amd and lluego by searching in no min were these conditions, buscaque by chance thinking I was doing something wrong and I told myself that maybe would be wrong.
To my surprise the file min had no conditions for AMD 0_o 'WHAT!?, Were not or could not find them, and good is happening here ?, then decided to use the uncompress file, surprise .. All operating asI expected !!!!!!

Apparently the Min file Passing minification process, some things are removed .. or is that this omitted for some reason? ... Well, that was what I found .. so we have to proceed to ourselves mimificar uncompress file to implement the application ...

Good post is to warn others who may have the same problem and I support this note to integrate in the documentation as a warning or correct the problem ..

Successes .

Replies

  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin

    Hi,

    If you do a search for "amd" in the min Javascript file you will find the AMD reference right at the end of the file.

    What version of DataTables are you using?

    Allan

  • kromanderkromander Posts: 2Questions: 0Answers: 0

    the last one but i imported like amd and not working just working when i use the uncompress file i dont' know whyy!!

    =(

  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin

    Are you able to two page showing the issue - one with the min version and one with the normal version?

    Allan

This discussion has been closed.