Fork me on GitHub
#lsp
<
2023-07-10
>
J15:07:57

Hi guys! What is the way to disable warning when a namespace is required like this (in a .cljc file):

(ns core
  #?(:clj [util :as u]))

(u/foo "foo") ;; Unresolved namespace u 

ericdallo15:07:34

you are requiring that ns only for :clj, so the u/foo should also be called in a :clj block

👍 2