jQuery is not defined

jQuery is not defined

xiaovxiaov Posts: 2Questions: 2Answers: 0
edited November 2018 in Free community support

I've already quoted "jquery.js" , but I still can't use plug-ins.
this is my code:

Object../node_modules/datatables.net-plugins/sorting/ip-address.js
src/scout-web-react/node_modules/datatables.net-plugins/sorting/ip-address.js:19

require('jquery/dist/jquery.min.js');
require('datatables/media/css/jquery.dataTables.css');
require('datatables/media/js/jquery.dataTables.min.js');
require('datatables.net-plugins/sorting/ip-address.js');
~~~~
Then I can use "$";

Answers

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

    Duplicate of this thread, please post just once.

    This section of the manual should help.

This discussion has been closed.