I have now tried a variety of :foreign-libs options. For example, today I tried to use this lib:
https://github.com/andreypopp/react-textarea-autosize I have tried loading this directly with the :es6 option - to no luck because apparently the = member declaration is invalid JS. I fixed that in the JS directly and put it on the constructor, but the JSX obviously was in the way. So I ran npm install and used the supplied make script to compile the code and tried to import the result with the :es6 option which simply resulted in the namespace not being available. Then I tried it without any module-type option and that resulted in a runtime error (exports is not defined). Then I tried it with the :commonjs module type, which resulted in ERROR: JSC_ES6_MODULE_LOAD_ERROR. Failed to load module "react" at resources/public/js/lib/react-textarea-autosize/lib/TextareaAutosize.js line 25 : 13 So I tried it with supplying ["cljsjs.react"] as a :requires, but that didn't help. Also runtime errors showed. Is there even a clean way to do this? The last two libs I imported I changed the Javascript until it was working. But I'd prefer not to. Kind regards, Leon. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
