diff --git a/.changeset/tiny-dragons-smell.md b/.changeset/tiny-dragons-smell.md new file mode 100644 index 000000000..7d6038a0c --- /dev/null +++ b/.changeset/tiny-dragons-smell.md @@ -0,0 +1,5 @@ +--- +"@monokle/validation": patch +--- + +fix validation remote plugin loader diff --git a/packages/validation/src/pluginLoaders/PluginLoader.ts b/packages/validation/src/pluginLoaders/PluginLoader.ts index 2484ab030..97f24289b 100644 --- a/packages/validation/src/pluginLoaders/PluginLoader.ts +++ b/packages/validation/src/pluginLoaders/PluginLoader.ts @@ -91,13 +91,13 @@ export class RemotePluginLoader extends DefaultPluginLoader { async load(plugin: string, ctx: PluginContext, settings?: Record) { try { - return super.load(plugin, ctx, settings); + return await super.load(plugin, ctx, settings); } catch (err) { if (err instanceof Error && err.message !== 'plugin_not_found') { throw err; } - return this.loadRemote(plugin, ctx, settings); + return await this.loadRemote(plugin, ctx, settings); } }