typeError this is undefined

typeError this is undefined

cwpdevcwpdev Posts: 1Questions: 1Answers: 0

I'm attempting to require('datatables.net') in a script that get's transpiled by webpack/babel-loader. However, I receiving a typeError: this is undefined on line 132.

Both jQuery and window are loaded and passed to the function.

Thanks in advance for any help you can offer.

Answers

  • colincolin Posts: 15,146Questions: 1Answers: 2,587

    This thread should help, it's asking the same thing.

    Cheers,

    Colin

This discussion has been closed.