Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82263

Datatables not working with WebPack

$
0
0

There are several other posts that have to do with WebPack and Datatables and none of them help my present situation.

First of I, I get datatables through download. I have to do this because I am using the editor and downloading is apparently the only way to use this.

As part of the download I get 2 files: datatables.js and datatables.css (and their .min counterparts).

So I import these files into my app.js...

// any CSS you import will output into a single css file (app.css in this case)
import './styles/app.scss';
import 'jquery';
import 'bootstrap';
import './datatables/datatables.css';
import DataTables from './datatables/datatables.js'

Webpack then compiles with the following errors...

Module build failed: Module not found:
"./assets/datatables/datatables.js" contains a reference to the file "datatablese "datatables.net".
This file can not be found, please check it for typos or update it if the file got moved.

"./assets/datatables/datatables.js" contains a reference to the file "datatables.net-bs5".
This file can not be found, please check it for typos or update it if the file got moved.

"./assets/datatables/datatables.js" contains a reference to the file "datatables.net-editor".
This file can not be found, please check it for typos or update it if the file got moved.

So what is going wrong here? It seems that webpack is looking for a bunch of files that weren't downloaded.


Viewing all articles
Browse latest Browse all 82263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>