You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Node 14.x running og2dot on the command line results in:
import { Graph } from "graphlib";
^^^^^
SyntaxError: The requested module 'graphlib' is expected to be of type CommonJS, which does not support named exports. CommonJS modules can be imported by importing the default export.
For example:
import pkg from 'graphlib';
const { Graph } = pkg;
at ModuleJob._instantiate (internal/modules/esm/module_job.js:98:21)
at async ModuleJob.run (internal/modules/esm/module_job.js:137:5)
at async Loader.import (internal/modules/esm/loader.js:165:24)
at async Object.loadESM (internal/process/esm_loader.js:68:5)
The text was updated successfully, but these errors were encountered:
Using Node 14.x running
og2dot
on the command line results in:The text was updated successfully, but these errors were encountered: