diff --git a/apps/circuit-compiler/src/app/services/circomPluginClient.ts b/apps/circuit-compiler/src/app/services/circomPluginClient.ts index b4c3ecc9ad..278264d132 100644 --- a/apps/circuit-compiler/src/app/services/circomPluginClient.ts +++ b/apps/circuit-compiler/src/app/services/circomPluginClient.ts @@ -228,7 +228,7 @@ export class CircomPluginClient extends PluginClient { includes.map(async (include) => { // fix for endless recursive includes let dependencyContent = '' - let path = include + let path = include.replace(/(\.\.\/)+/g, '') // @ts-ignore const pathExists = await this.call('fileManager', 'exists', path)