diff --git a/libs/remix-ui/solidity-compiler/src/lib/logic/compileTabLogic.ts b/libs/remix-ui/solidity-compiler/src/lib/logic/compileTabLogic.ts index ba55cbb752..958ef3a06a 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/logic/compileTabLogic.ts +++ b/libs/remix-ui/solidity-compiler/src/lib/logic/compileTabLogic.ts @@ -112,7 +112,7 @@ export class CompileTabLogic { this.event.emit('startingCompilation') if(await this.api.fileExists('remappings.txt')) { this.api.readFile('remappings.txt').then(remappings => { - this.compiler.set('remappings', remappings.split('\n')) + this.compiler.set('remappings', remappings.split('\n').filter(Boolean)) }) } else this.compiler.set('remappings', []) if (this.configFilePath) {