diff --git a/lib/environment.js b/lib/environment.js index 934d6872..88de7da3 100644 --- a/lib/environment.js +++ b/lib/environment.js @@ -564,7 +564,7 @@ class Environment extends Base { // eslint-disable-next-line node/no-unsupported-features/es-syntax const importModule = async () => import(meta.resolved); - const instantiate = async (args, options) => this.instantiate(this._findGeneratorClass(await meta.importGenerator()), args, options); + const instantiate = async (args, options) => this.instantiate(await this._findGeneratorClass(await meta.importGenerator()), args, options); const instantiateHelp = async () => instantiate([], {help: true}); const newMeta = { ...meta,