Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

og2dot command line does not work with Node 14 #25

Closed
pkalita-lbl opened this issue Sep 8, 2022 · 0 comments · Fixed by #26
Closed

og2dot command line does not work with Node 14 #25

pkalita-lbl opened this issue Sep 8, 2022 · 0 comments · Fixed by #26
Assignees

Comments

@pkalita-lbl
Copy link
Contributor

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant