ExpoSEJS / ExpoSE

A Dynamic Symbolic Execution (DSE) engine for JavaScript. ExpoSE is highly scalable, compatible with recent JavaScript standards, and supports symbolic modelling of strings and regular expressions.
MIT License
183 stars 36 forks source link

Can not run ExpoSE cli. #111

Closed trungkien20020428 closed 10 months ago

trungkien20020428 commented 10 months ago

I tried to install ExpoSE and still can not run it. It logs errors outside of the module.

./expoSE ./tests/numbers/infoflow
(node:15974) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:15974) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
/home/kien/ExpoSE/Distributor/src/Distributor.js:3
import Internal from "./Internal";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at wrapSafe (internal/modules/cjs/loader.js:979:16)
    at Module._compile (internal/modules/cjs/loader.js:1027:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at ModuleWrap.<anonymous> (internal/modules/esm/translators.js:199:29)
    at ModuleJob.run (internal/modules/esm/module_job.js:152:23)
    at async Loader.import (internal/modules/esm/loader.js:166:24)
    at async Object.loadESM (internal/process/esm_loader.js:68:5)

With node version 14.17.1 and environment dependency in the readme of this repo.