We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried to get around #249 by using array and js-obj directly. The latters works, but attempting to use the array function in a viewer:
array
js-obj
(clerk/with-viewer '(fn [_] (v/html [:div "error: " (str (array 1 2 3))])) "")
Triggers the following error:
unusable viewer `nil`, value `#error {:message "error in render-fn: Could not resolve symbol: array", :data {:render-fn (fn [_] (v/html [:div "error: " (str (array 1 2 3))]))}, :cause #error {:message "Could not resolve symbol: array", :data {:type :sci/error, :line 1, :column 82, :message "Could not resolve symbol: array", :sci.impl/callstack #object[cljs.core.Volatile {:val ({:line 1, :column 45, :ns #object[CT user], :file nil} {:line 1, :column 53, :ns #object[CT user], :file nil} {:line 1, :column 53, :ns #object[CT user], :file nil, :sci.impl/f-meta nil} {:line 1, :column 77, :ns #object[CT user], :file nil} {:line 1, :column 77, :ns #object[CT user], :file nil, :sci.impl/f-meta {:name str, :arglists ([] [x] [x & ys]), :doc "With no args, returns the empty string. With one arg x, returns\n x.toString(). (str nil) returns the empty string. With more than\n one arg, returns the concatenation of the str values of the args.", :sci/built-in true, :ns #object[CT clojure.core]}} {:line 1, :column 82, :ns #object[CT user], :file nil})}], :file nil, :phase "analysis"}, :cause #error {:message "Could not resolve symbol: array", :data {:type :sci/error, :line nil, :column nil, :file nil, :phase "analysis"}}}}`
cc @borkdude
The text was updated successfully, but these errors were encountered:
babashka/sci@a766b73
Fixed with babashka/sci@a766b73. As soon as @mk bumps SCI here then it will be available in clerk as well.
As a workaround you can do (js/Array. 1 2 3) for now.
(js/Array. 1 2 3)
Sorry, something went wrong.
214c611
Thank you!
No branches or pull requests
I tried to get around #249 by using
array
andjs-obj
directly. The latters works, but attempting to use thearray
function in a viewer:Triggers the following error:
cc @borkdude
The text was updated successfully, but these errors were encountered: