standard-things / esm

Tomorrow's ECMAScript modules today!
Other
5.26k stars 146 forks source link

Problems loading 'resolve-dir' #791

Open OmgImAlexis opened 5 years ago

OmgImAlexis commented 5 years ago

I had to kill the node -r esm require as it never finishes.

bash-4.4# node
> var resolveDir = require('resolve-dir');
undefined
> resolveDir
[Function: resolveDir]
> 
(To exit, press ^C again or type .exit)
> 
bash-4.4# node -r esm
> var resolveDir = require('resolve-dir');
^CError: Script execution interrupted.
    at Script.runInThisContext (vm.js:96:20)
    at REPLServer.defaultEval (repl.js:329:29)
    at bound (domain.js:396:14)
    at REPLServer.runBound [as eval] (domain.js:409:12)
    at REPLServer.onLine (repl.js:642:10)
    at REPLServer.emit (events.js:187:15)
    at REPLServer.EventEmitter.emit (domain.js:442:20)

Ref: https://github.com/gulpjs/findup-sync/issues/45#issuecomment-487448242