Closed jmckitrick closed 9 years ago
Your code does not look valid according to latest ClojureScript requirements. It should be:
(defn add-test
[div]
(.appendChild js/body div)
div))
Maybe using 0.3.3
brings a newer ClojureScript that has stricter semantic checks?
@jeluard That's very odd, I cannot reproduce the problem now. If it reappears, I'll open another issue. Thanks!
Running my test suite under 0.3.2 passes.
Running it under 0.3.3 fails with this message:
TypeError: 'null' is not an object (evaluating 'a.appendChild')
and can be tracked down to this function used for testing React components:
(defn add-test-div [name](let [doc js/document body %28.-body js/document%29 div %28.createElement doc)] (.appendChild body div) div))