Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes with es2015 target #1366

Closed
JakeWharton opened this issue Jul 3, 2024 · 1 comment
Closed

Crashes with es2015 target #1366

JakeWharton opened this issue Jul 3, 2024 · 1 comment
Labels

Comments

@JakeWharton
Copy link
Member

Adding

js {
  browser {
    compilerOptions {
      target = 'es2015'
    }
  }
}

to a module with the Zipline plugin causes

Caused by: java.util.NoSuchElementException: List is empty.
        at kotlin.collections.CollectionsKt___CollectionsKt.last(_Collections.kt:418)
        at app.cash.zipline.ZiplineManifest$Companion.create(ZiplineManifest.kt:254)
        at app.cash.zipline.ZiplineManifest$Companion.create$default(ZiplineManifest.kt:229)
        at app.cash.zipline.gradle.ZiplineCompiler.writeManifest(ZiplineCompiler.kt:149)
        at app.cash.zipline.gradle.ZiplineCompiler.compile(ZiplineCompiler.kt:57)
        at app.cash.zipline.gradle.ZiplineCompileTask.task(ZiplineCompileTask.kt:154)
@JakeWharton JakeWharton added the bug label Jul 3, 2024
@JakeWharton
Copy link
Member Author

This is probably just #988 finally rearing its head and our lack of support for it.

@JakeWharton JakeWharton closed this as not planned Won't fix, can't repro, duplicate, stale Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant