This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-03-29
Channels
- # announcements (9)
- # aws (1)
- # beginners (133)
- # boot (2)
- # calva (94)
- # cider (48)
- # cljdoc (7)
- # cljsrn (22)
- # clojure (128)
- # clojure-europe (22)
- # clojure-finland (7)
- # clojure-greece (6)
- # clojure-losangeles (3)
- # clojure-nl (81)
- # clojure-spec (30)
- # clojure-uk (60)
- # clojure-ukraine (1)
- # clojurescript (45)
- # core-async (26)
- # cursive (18)
- # datomic (12)
- # defnpodcast (1)
- # duct (4)
- # editors (4)
- # emacs (6)
- # fulcro (37)
- # graphql (4)
- # jobs (2)
- # jobs-rus (1)
- # juxt (7)
- # kaocha (2)
- # leiningen (1)
- # nrepl (22)
- # off-topic (2)
- # re-frame (16)
- # reagent (8)
- # reitit (22)
- # ring-swagger (5)
- # shadow-cljs (81)
- # tools-deps (4)
This code used to work, but after updating my dependencies I now need to use [:> HighchartsReact/default
instead. Otherwise there’s an issue from React.createElementWithValidation
because type is an object rather than a function (obviously).
This was difficult for me to debug and understand, because in js the usage still is import HighchartsReact from 'highcharts-react-official'
and <HighchartsReact ...>
.
The js code has changed from module.exports
style to export default class HighchartsReact
.
Should this be documented in Interop with React or is this a bug?
Whichever it is, I might make a pull request with a fix.
@hannu.hartikainen Is this with Shadow-cljs? If the package started using ES6, this doesn't seem like issue at all. To refer to the ES6 default export you should use ["highcharts-react-official" :default HighchartsReact]
https://shadow-cljs.github.io/docs/UsersGuide.html#_using_npm_packages
Or ["highcharts-react-official" :rename {default HighchartsReact}]
which would be compatible with standard Cljs. Though I doubt Highcharts works with Cljs core npm module support.
Thanks @juhoteperi. I guess there's just too many moving parts to grok for me, but I might have been stuck with the same thing in js...