Skip to content

Datatable - JS-integration problems #2172

Discussion options

You must be logged in to vote

tl;dr: The tw-elements.umd.min.js script-tag needs to be of type text/javascript, but additional scripts need to be of type module. This way te (and all the TWE features) is available, when the additional script runs.

Hi @iprzybysz,
thank you for your response. It put me on the right track.

As @juujisai proposed earlier the type-attribute was the problem. However, in my case I needed my js code (the code in the home.html file) to be of type module - not the Tailwind-JS file.

Thank you all for your help!

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@juujisai
Comment options

@SergejGleithmann
Comment options

@iprzybysz
Comment options

@SergejGleithmann
Comment options

Answer selected by SergejGleithmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants