Skip to content

js/wasmJs targets fail to compile, and no release on Maven Central #3

Description

@cloudigits

Thanks for Krawler — being able to drive a crawl from shared Kotlin code, with the DSL rather than a builder, is why we picked it.

Two things stop it working on web today. We hit both and fixed them on a fork:

  1. BatchCrawlUseCase uses Dispatchers.IO, which doesn't exist on js/wasmJs. An expect val for the IO dispatcher (falling back to Dispatchers.Default on web) resolves it.
  2. required() and multiple() in the DSL collide with the same-named properties after JS name mangling. @JsName on the functions fixes it.
  3. The wasmJs target is missing the ktor-client-js engine dependency.

Separately, there's still no release on Maven Central — I ran into that in #2 — and I see #1 is open for the publishing setup, so consumers currently have to build from source or host their own artifacts.

Happy to open a PR with the three fixes above if it wouldn't collide with #1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions