Hey guys, javascript module n00b here. I tried to ...
# javascript
h
Hey guys, javascript module n00b here. I tried to use react-tracked (https://github.com/dai-shi/react-tracked) but I'm getting "Uncaught TypeError: $module$react_tracked is not a function" so I'm guessing there's sth wrong but I don't know what 😞 Anyone able to just include this npm dependency in his project? Without me giving what I tried already, what should the external declarations look like for example to use the createContainer function https://github.com/dai-shi/react-tracked/blob/master/src/index.js ?
i
In general case your should add external declaration https://kotlinlang.org/docs/reference/js-interop.html#external-modifier or use dukat https://github.com/Kotlin/dukat.
Can you attach your project?
h
Yea, i tried experimental autogen of declarations and it failed. I then added the dependency and some external fun createCobtainer(input: dynamic): dynamic or sth and got the posted error. Worked fine with is-sorted dependency. Currently not, but taking the react handson and try to add react-tracked is what is needed :) thanks for your reply!