Bogdan-Lyashenko / js-code-to-svg-flowchart

js2flowchart - a visualization library to convert any JavaScript code into beautiful SVG flowchart. Learn other’s code. Design your code. Refactor code. Document code. Explain code.
MIT License
7.05k stars 472 forks source link

Internal Binding Error: this.input.charCodeAt is not a function #74

Open gitmeto opened 1 year ago

gitmeto commented 1 year ago

Error at parseCodeToAST: this.input.charCodeAt is not a function node:internal/process/esm_loader:108 internalBinding('errors').triggerUncaughtException( ^

TypeError: this.input.charCodeAt is not a function


TypeError: this.input.charCodeAt is not a function at at.skipSpace (~\js2flowchart\dist\js2flowchart.js:1:214760) at at.nextToken (~\js2flowchart\dist\js2flowchart.js:1:213390) at at.parse (~\js2flowchart\dist\js2flowchart.js:1:298151) at t.parse (~\js2flowchart\dist\js2flowchart.js:1:299385) at Y (~\js2flowchart\dist\js2flowchart.js:8:131355) at Object.buildAst (~\js2flowchart\dist\js2flowchart.js:8:140579) at Object.build (~\js2flowchart\dist\js2flowchart.js:8:140502) at file:///~/js2Flowchart.js:37:34 at ModuleJob.run (node:internal/modules/esm/module_job:193:25) at async Promise.all (index 0)