// Old code when having "type": "commonjs" in package.json and "module": "commonjs" in tsconfig.json
import { UndirectedGraph } from 'graphology'Now changing to "type": "module" in package.json causes following error report:
import { UndirectedGraph } from 'graphology';
^^^^^^^^^^^^^^^
SyntaxError: Named export 'UndirectedGraph' not found. The requested module 'graphology' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using: