handle deferred import

pull/377/head
aniket-engg 4 years ago
parent 0f4f699d01
commit 339579f8a8
  1. 2
      libs/remix-solidity/src/compiler/compiler.ts
  2. 2
      libs/remix-tests/src/run.ts

@ -133,7 +133,7 @@ export class Compiler {
const checkIfFatalError = (error: CompilationError) => {
// Ignore warnings and the 'Deferred import' error as those are generated by us as a workaround
const isValidError = (error.message && error.message.includes('Deferred import')) ? false : error.severity !== 'warning'
const isValidError = (error.message && error.message=== 'Deferred import') ? false : error.severity !== 'warning'
if(isValidError) noFatalErrors = false
}
if (data.error) checkIfFatalError(data.error)

@ -20,7 +20,7 @@ function mapVerbosity (v: number) {
}
return levels[v]
}
const version = require('../../../package.json').version
const version = require('../package.json').version
commander.version(version)

Loading…
Cancel
Save