# 1.1.50 JS compiler requires kotlin-reflect?

**URL:** <https://discuss.kotlinlang.org/t/1-1-50-js-compiler-requires-kotlin-reflect/4699>\
**Category:** Uncategorized\
**Created:** [September 22, 2017, 7:31pm UTC](https://discuss.kotlinlang.org/t/1-1-50-js-compiler-requires-kotlin-reflect/4699 "2017-09-22T19:31:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Konstantin-Khvan](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@Konstantin-Khvan](https://discuss.kotlinlang.org/u/Konstantin-Khvan)\
**Post date:** [September 22, 2017, 7:31pm UTC](https://discuss.kotlinlang.org/t/1-1-50-js-compiler-requires-kotlin-reflect/4699/1 "2017-09-22T19:31:03Z")

</div>

After updating kotlin to 1.1.50 js compiler suddenly fails with this (truncated) stacktrace

```
Caused by: java.lang.NoSuchMethodError: kotlin.reflect.jvm.internal.KClassImpl.getData()Lkotlin/reflect/jvm/internal/ReflectProperties$LazyVal;
        at kotlin.reflect.full.KClasses.getMemberProperties(KClasses.kt:149)
        at org.jetbrains.kotlin.compilerRunner.ArgumentUtils.convertArgumentsToStringList(ArgumentUtils.java:59)
        at org.jetbrains.kotlin.compilerRunner.ArgumentUtils.convertArgumentsToStringList(ArgumentUtils.java:47)
        at org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile.callCompiler$kotlin_gradle_plugin(Tasks.kt:455)

```

Is it a bug or new feature?

---

<div class="post-metadata">

**Author:** ![bashor](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/bashor/32/1431_2.png) [@bashor](https://discuss.kotlinlang.org/u/bashor)\
**Post date:** [September 25, 2017, 12:54pm UTC](https://discuss.kotlinlang.org/t/1-1-50-js-compiler-requires-kotlin-reflect/4699/2 "2017-09-25T12:54:15Z")

</div>

Yes, the compiler itself uses kotlin-reflect. How do you run the compiler? From command line, gradle or anything else?

---

<div class="post-metadata">

**Author:** ![Konstantin-Khvan](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@Konstantin-Khvan](https://discuss.kotlinlang.org/u/Konstantin-Khvan)\
**Post date:** [September 25, 2017, 1:16pm UTC](https://discuss.kotlinlang.org/t/1-1-50-js-compiler-requires-kotlin-reflect/4699/3 "2017-09-25T13:16:08Z")

</div>

Looks like the reason was old gradle version. 3.2.1.  
Updating to 3.5 or 4.2 seems to fix error.
