When you install the following packages:
npm install tabulator-tables
npm install @types/tabulator-tables
And then import them like this:
import Tabulator from 'tabulator-tables';
You may encounter an error:
Module Usage (Error node_modules @types tabulator tables index.d.ts' is not a module)
.
However, if you use this import instead:
import 'tabulator-tables';
No error will be shown and type information can be loaded. But in runtime scenarios, such as in an Angular 12 project, accessing the Tabulator object might result in errors like
ReferenceError: Tabulator is not defined
.