Been receiving this message after doing a Gradle r...
# gradle
n
Been receiving this message after doing a Gradle refresh:
Project#afterEvaluate(Closure) on project ':js' cannot be executed in the current context.
. This is the part in the build file that causes the error to occur:
Copy code
val runJest by tasks.creating(NodeTask::class) {
    val outputUri = (compileTestKotlin2Js as Kotlin2JsCompile).outputFile.toURI()
    dependsOn(installJest, compileTestKotlin2Js, populateNodeModules, generateTestDir)
    setScript(File("$projectDir/node_modules/jest/bin/jest.js"))
    addArgs(projectDir.toURI().relativize(outputUri))
}