Installation problems with Editor

Installation problems with Editor

DerGronckiDerGroncki Posts: 5Questions: 1Answers: 0
edited February 2022 in Free community support

I would like to try "Editor" first before I buy "Editor".

I downloaded a trial version and installed it via npm as described.

My project is basically a create-react-app application. Here I have already integrated DataTables and would now like to add the editor function to the tables.
However, I get the following error message in the browser:

Can this be a license problem? Anyone know this error?

At Github there is a sample project with React and the "Editor 1.9.0" . I assume it worked this time. However, I get the same error with the downloaded version 2.06.

Unfortunately it is not possible to download an older version as a trial.

Thank you.

Best regards,
Michael

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,234Questions: 1Answers: 10,417 Site admin

    Hi Michael,

    Does your WebPack builder have a minification step? If so, can you display that? The obfuscated trial code can break when minified unfortunately.

    Allan

  • DerGronckiDerGroncki Posts: 5Questions: 1Answers: 0

    Hello Allan,

    in development the code is not minified.

    Michael

  • DerGronckiDerGroncki Posts: 5Questions: 1Answers: 0

    Hello Alan,

    is there anything i can do to solve the problem. I think buying a license will not solve it. What do you think?

    Everyone: Anyone else here using React with DataTables Editor? How did you integrate the editor?

    Thanks very much.

    Michael

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    This thread might help, it's discussing React 16 and Editor.

    Colin

  • DerGronckiDerGroncki Posts: 5Questions: 1Answers: 0
    edited February 2022

    Hello Colin,

    thanks, but the example react-datatables-editor is causing the same problem (see my original question).

    Michael

  • allanallan Posts: 63,234Questions: 1Answers: 10,417 Site admin
    Answer ✓

    Hi Michael,

    Many thanks for this! It looks like there is an error in how the packaging is being done for the trial. With the trial version you need to do:

    require('datatables.net-editor')(window, $);
    

    With the licensed version however:

    require('datatables.net-editor');
    

    which is what the demo package you linked to uses. I will look into this further as I need to understand what is happening with the obfuscation there and why it is effecting the result.

    Allan

  • allanallan Posts: 63,234Questions: 1Answers: 10,417 Site admin

    That was an interesting trip :). Basically the obfuscation caused the trial to load via CommonJS, while all the other libraries and the licensed version used AMD in a WebPack build.

    I've got this fixed and will release Editor 2.0.7 with the fix soon. Until then, the workaround above will work.

    Allan

  • DerGronckiDerGroncki Posts: 5Questions: 1Answers: 0
    edited February 2022

    Hello Allan, many thanks, that looks very promising!!!

    I was able to put the editor into operation in the example react-datatables-editor as well as in my current project, but I will continue to test it.

    I'll get in touch again.

    Kind regards,
    Michael

Sign In or Register to comment.