diff --git a/libs/remix-tests/src/compiler.ts b/libs/remix-tests/src/compiler.ts index 697483d593..f16c925edc 100644 --- a/libs/remix-tests/src/compiler.ts +++ b/libs/remix-tests/src/compiler.ts @@ -183,7 +183,7 @@ export function compileContractSources (sources: SrcIfc, newCompConfig: any, imp async.waterfall([ (next) => { - if (!deepequal(UTRunner.compilerConfig, newCompConfig)) { + if (!compiler || !deepequal(UTRunner.compilerConfig, newCompConfig)) { UTRunner.compilerConfig = newCompConfig const { currentCompilerUrl, evmVersion, optimize, runs, usingWorker } = newCompConfig compiler = new RemixCompiler(importFileCb)