ColumnControl cannot find several modules when building - CSS compression
ColumnControl cannot find several modules when building - CSS compression

Link to test case: N/A
Debugger code (debug.datatables.net): N/A
Error messages shown: See below
Description of problem:
Hello! I'm still on my journey to add a searchListArray content type to ColumnControl (a searchList that can handle individual items in list-based cells, pretty much).
I was able to build my modified version, with a few errors, but examples are not loading (it just shows the source code, it doesn't render the page). So! I went to the regular ColumnControl to check if there were similar issues there, particularly when doing CSS Compression of the columncontrol file. The examples did load, but not without a few errors telling me about:
* Unrecognized modules (specifically, undici-types
and csstype
), even though they exist;
* A single circular dependency with Button
Error sample:
CSS compressing columnControl.dataTables.css
File size: 13808
../../node_modules/@types/node/http.d.ts:2093:36 - error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
2093 const WebSocket: typeof import("undici-types").WebSocket;
~~~~~~~~~~~~~~
../../node_modules/@types/node/http.d.ts:2097:37 - error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
2097 const CloseEvent: typeof import("undici-types").CloseEvent;
~~~~~~~~~~~~~~
../../node_modules/@types/node/http.d.ts:2101:39 - error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
2101 const MessageEvent: typeof import("undici-types").MessageEvent;
~~~~~~~~~~~~~~
../../node_modules/@types/node/web-globals/fetch.d.ts:3:25 - error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
3 import * as undici from "undici-types";
~~~~~~~~~~~~~~
../../node_modules/@types/node/worker_threads.d.ts:66:34 - error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
66 import { MessageEvent } from "undici-types";
~~~~~~~~~~~~~~
../../node_modules/@types/react/index.d.ts:7:22 - error TS2792: Cannot find module 'csstype'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
7 import * as CSS from "csstype";
~~~~~~~~~
Found 6 errors in 4 files.
Errors Files
3 ../../node_modules/@types/node/http.d.ts:2093
1 ../../node_modules/@types/node/web-globals/fetch.d.ts:3
1 ../../node_modules/@types/node/worker_threads.d.ts:66
1 ../../node_modules/@types/react/index.d.ts:7
js/dataTables.columnControl.js → js/dataTables.columnControl.js...
(!) Circular dependency
js/Button.js -> js/content/dropdown.js -> js/Button.js
Proof the modules exist:
How to reproduce:
git clone https://github.com/DataTables/DataTablesSrc.git
cd DataTablesSrc
npm install
npm run build
(cd build && ./make.sh extension ColumnControl)
npm run serve
Was this due to improper use of the makefile, or something else? I currently was unable to understand how to use npm commands to directly build the ColumnControl extension, hence me using the makefile.
Answers
It shouldn't be checking those types at all, they aren't needed or used in ColumnControl. I'll try to get a fix in for that tomorrow.
Allan
Thanks!