문제

I ClojureScript I can do something within a ns declaration like like:

(ns demo2
  (:require
    [goog.ui.Textarea               :as text-area]
  )
)

: but :

(require '[goog.ui.Textarea :as text-area])

: doesn't work. Does anyone know what I'm doing wrong?

도움이 되었습니까?

해결책

There is no (require) definition in ClojureScript.

As stated in the wiki page on namespaces:

You must use the :as form of :require

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top