Open delivrjs opened 2 years ago
Same issue, did you find a solution?
+1
Same issue, did you find a solution?
Nah man! Hope the author at-least replies @saasryan
+1
+1
change the code likes below, it works for me
let mod
let logger
(async () => {
try {
await setup(DEFAULT_CONFIG);
mod = await async function() {
return {
LogLevels: LogLevels,
Logger: Logger,
handlers: handlers1,
LoggerConfig: LoggerConfig,
getLogger: getLogger,
debug: debug,
info: info,
warning: warning,
error: error,
critical: critical,
setup: setup
};
}();
logger = mod.getLogger();
} catch (err) {
console.error(err);
}
})();
Hello, I am facing following error when trying to publish it to cloudflare workers
The problem seems to be arising from here:
How do I enable
Top-level await
or how to make it work @nilslice ?