Skip to content

Commit

Permalink
Import module is async, too
Browse files Browse the repository at this point in the history
  • Loading branch information
klein0r committed May 3, 2024
1 parent c312c65 commit 79faa88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Expand Up @@ -1810,7 +1810,7 @@ async function installLibraries() {
if (result.success) {
adapter.log.debug(`Installed custom dependency: "${depName}@${version}"`);

context.mods[depName] = adapter.importNodeModule(depName);
context.mods[depName] = await adapter.importNodeModule(depName);
}
} else if (!nodeFS.existsSync(`${__dirname}/node_modules/${depName}/package.json`)) {
// js-controller <= 6.x
Expand Down

0 comments on commit 79faa88

Please sign in to comment.