Open skerit opened 2 years ago
I basically wanted to make an annoying ESM-only module synchronous:
var done = false;
var data;
let _module = import('franc');
_module.then(result => {
data = result;
done = true;
}).catch(err => {
done = true;
})
require('deasync').loopWhile(function(){return !done;});
I am having the same problem with Node 20 and Node 21.
I'm getting this error: