scala-js/scala-js-dom

package org.scalajs.dom contains object and package with same name: raw

japgolly opened this issue · 9 comments

Only occurring with Scala 3:

exception caught when loading module class dom: package org.scalajs.dom contains object and package with same name: raw
one of them needs to be removed from classpath

https://github.com/japgolly/scalajs-react/pull/995/checks?check_run_id=3921789951#step:4:7310

Ooph. Good catch.

Except ... I have no idea what's causing this?

Ahhhhhhhhhhhh I (think) get it, it's object instead of package object

Right, it's an object, but what's the raw package? I thought it doesn't exist anymore??

Tbh idk.... I can't reproduce it locally 😨

I am more and more convinced this is a GH actions fluke and not legit, especially since we can't really reproduce it. I can't explain why we would only get this error for Scala 3, nor why it would occur non-deterministically.

@japgolly is this still an issue?

@japgolly is this still an issue?

haha jinx, I just closed the PR 😆

From #609:

It turns out that this problem wasn't due to caching after all, but due to a transitive dependency relying on scalajs-dom v1, which was evicted in favour of v2, resulting in this incompatibility.