How to suppress intellij IDEA error in editor when using Binding.scala macro annotation?
问题 Despite it compiles and runs in sbt console. Intellij complains that I should have Binding[Node] instead of Elem in editor. @dom def renderDiv: Binding[Div] = <div>...</div> From intellij IDEA's perspective, this method returns a Elem which is a subtype of scala.xml.Node , but when rendering: dom.render(document.getElementById("root"),renderDiv) it requires a org.scalajs.dom.raw.Node . Is there any workaround to this? 回答1: Could put an implicit conversion def in scope: package object xxx {